Re: How to deploy a custom DynamicMBean
The docs you've described are mostly for if you want custom Tomcat components (such as Valves or Realms). You'd want something basic like: MBeanServer mserver = (MBeanServer)MBeanServerFactory.findMBeanServer(null).get(0); ObjectName loader = new ObjectName("Catalina:type=WebappClassLoader,path=/myapp,host=localhost"); ObjectName mylight = new ObjectName("MyApp:type=lightbulb"); mserver.createMBean("scratch.LightBulbDynamicMBean", mylight, loader); Of course, you have to change the host and path to match your app, and the domain of the loader to match the Engine name if you've changed it from its default value. "Eric Herman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm looking for help from someone with some experience deploying > DynamicMBeans to Tomcat. > > In short, my questions boil down to some very basic information gaps: > once we have a DynamicMBean, > (1) What do we need to add to the server.xml file? > (2) What other configuration file(s) need to be created/edited? > (3) What are the contents of those files? > > > Please feel free to tell me to "Read The Fine Manual" ... but I've had > some trouble locating meaningful docs. If the answers I seek are > documented somewhere, a pointer to those docs would be greatly > appreciated. Otherwise, I would be happy to put something together, > maybe a small how-to, once I have things working. I think a step-by-step > set of instructions around a concrete (if very simple) example would be > useful to others trying to do similar things. > > > Let me share what I've learned so far: > > According to the "MBean Descriptor How To" > http://jakarta.apache.org/tomcat/tomcat-5.0-doc/mbeans-descriptor-howto.html > > Once we have an MBean, it looks like we need to create a > mbean-descriptor.xml and add it to the list of "descriptors" in the > ServerLifecycleListener tag. Something like: > > className="org.apache.catalina.mbeans.ServerLifecycleListener" >descriptors="/scratch/mbean-descriptor.xml" >debug="0"/> > > > I have tried this and get a very curious error: > org.xml.sax.SAXParseException: The processing instruction target > matching "[xX][mM][lL]" is not allowed. > > Should it be the "GlobalResourcesLifecycleListener" tag? Using that > seems to avoid the stack-trace, but then it doesn't look like the custom > DynamicMBean is being instantiated, so if this is correct, there's > something else missing. > > I found one reference to someone else having similar confusion but was > not able to use the information to good advantage: > > http://www.junlu.com/msg/93635.html > > I didn't see a description the "Engine" tag suggested in this thread. > > > Assuming we are supposed to create "mbean-descriptor.xml" files (and the > SAXParseException can be over-come) ... are these files usually packaged > up in the jar file (with the MBean class files) deployed to server/lib? > That's where I've put it, for the moment, but I am not sure this is a > good practice. It doesn't seem right to package JMX Agent specific files > inside the jar; a different file is needed with JBoss, for instance. > > I have not seen a good example of what this descriptor file is expected > to contain, especially for DynamicMBean where the attributes my not be > known at deployment time. If you know of an example, please post the > url. > > Next the Descriptor How To suggests that "You may also add MBean > descriptions for custom components in > org.apache.catalina.mbeans.mbeans-descriptor.xml file." After some > searching, I think this file is normally only contained in the > catalina.jar file in the server/lib directory. This feels like messing > with the Tomcat internals. Ideally, I wouldn't want our new MBeans > exposed as part of Tomcat itself. So, I don't understand when or why we > should modify that file. > > To provide an DynamicMBean deployment example, I've attached a simple > "LightBulb" class to be managed, as well as a very naive DynamicMBean to > manage it. If we really had an application this simple, we probably > wouldn't be using a DynamicMBean, but I've tried to create something > simple enough to let us focus on the deployment issues. > > > Any input (kind or cruel) is welcome. > > Cheers, > -- Eric > > -- > Eric Herman, Software Developer > MySQL AB, www.mysql.com > Office: +1 206 720 1724 > > Are you MySQL certified? www.mysql.com/certification > > > - > 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]
Use of LANG=en_US in Tomcat configuration file
Can someone please explain what's the use for this line in the tomcat configuration file? What's the use of it (the line is commented) and what effect does it have on a running container? What value can it take as well? Any other variables can be set in the same file? Thanks in advance. José Ernesto Echeverría - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to get the context path for a web application?
also, request.getContextPath(); aris -Original Message- From: Keith Bottner [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 12:10 PM To: 'Tomcat Users List' Subject: RE: How to get the context path for a web application? Have you tried ? request.getServletPath(); Keith -Original Message- From: Dov Rosenberg [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 9:49 PM To: Tomcat Users List Subject: How to get the context path for a web application? I need to find a way to get the context path of the current web application. I would like to to it using the HttpSession, HttpServletRequest or response. I tried the ServletContext.getServletContextName but it returns null in Tomcat. Is there a cross container solution? -- Dov Rosenberg Conviveon Corporation http://www.conviveon.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0.19 not dispatching to servlet
Hello, I'm running Tomcat 5.0.19, Apache 2.0.49 and mod_jk2-2.0.4, stand alone (NOT in-process), on a W2K box. Tomcat is listening on port 8009 (port 8080 is commented out) and Apache passes all requests of type "/psi/servlet/* to Tomcat, via the workers2.properties file redirect (see below). I have a servlet defined in my web.xml file to load up at Tomcat startup. I've verified that the servlet is loading by writing debugging information in the servlet init() method. So, the servlet is loading at Tomcat startup but when Apache redirects the servlet request to Tomcat, I get a 404 served up by Tomcat. I know this because the Tomcat version is displayed at the bottom of the error page. I'm using a context configuration file to define my path and docbase (see below). This same configuration works with another application that uses Struts, .jsp and servlets. Any ideas? I'm getting desperate... Thanks, Dave workers2.properties file: # Set level to ERROR or EMERG for production - check path [logger.file:0] level=ERROR file=C:/Apache2/logs/mod_jk2.log [logger] level=ERROR [config:] file=c:/Apache2/conf/workers2.properties debug=0 debugEnv=0 [uriMap:] info=Maps the requests. Options: debug debug=0 [channel.socket:localhost:8009] info=Ajp13 forwarding over socket port=8009 host=localhost lb_factor=1 group=lb disabled=0 debug=0 # Define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=${serverRoot}/logs/jk2.shm size=100 debug=0 disabled=0 [workerEnv:] info=Global server options timing=1 debug=0 logger=logger.file:0 # Announce a "status" worker [status:status] info=Status worker. Displays runtime information. [uri:/jkstatus/*] group=status:status [uri:/psi/servlet/*] info=PSI default context. group=lb debug=0 context configuration file: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to get the context path for a web application?
Have you tried ? request.getServletPath(); Keith -Original Message- From: Dov Rosenberg [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 9:49 PM To: Tomcat Users List Subject: How to get the context path for a web application? I need to find a way to get the context path of the current web application. I would like to to it using the HttpSession, HttpServletRequest or response. I tried the ServletContext.getServletContextName but it returns null in Tomcat. Is there a cross container solution? -- Dov Rosenberg Conviveon Corporation http://www.conviveon.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]
How to get the context path for a web application?
I need to find a way to get the context path of the current web application. I would like to to it using the HttpSession, HttpServletRequest or response. I tried the ServletContext.getServletContextName but it returns null in Tomcat. Is there a cross container solution? -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to deploy a custom DynamicMBean
I'm looking for help from someone with some experience deploying DynamicMBeans to Tomcat. In short, my questions boil down to some very basic information gaps: once we have a DynamicMBean, (1) What do we need to add to the server.xml file? (2) What other configuration file(s) need to be created/edited? (3) What are the contents of those files? Please feel free to tell me to "Read The Fine Manual" ... but I've had some trouble locating meaningful docs. If the answers I seek are documented somewhere, a pointer to those docs would be greatly appreciated. Otherwise, I would be happy to put something together, maybe a small how-to, once I have things working. I think a step-by-step set of instructions around a concrete (if very simple) example would be useful to others trying to do similar things. Let me share what I've learned so far: According to the "MBean Descriptor How To" http://jakarta.apache.org/tomcat/tomcat-5.0-doc/mbeans-descriptor-howto.html Once we have an MBean, it looks like we need to create a mbean-descriptor.xml and add it to the list of "descriptors" in the ServerLifecycleListener tag. Something like: I have tried this and get a very curious error: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed. Should it be the "GlobalResourcesLifecycleListener" tag? Using that seems to avoid the stack-trace, but then it doesn't look like the custom DynamicMBean is being instantiated, so if this is correct, there's something else missing. I found one reference to someone else having similar confusion but was not able to use the information to good advantage: http://www.junlu.com/msg/93635.html I didn't see a description the "Engine" tag suggested in this thread. Assuming we are supposed to create "mbean-descriptor.xml" files (and the SAXParseException can be over-come) ... are these files usually packaged up in the jar file (with the MBean class files) deployed to server/lib? That's where I've put it, for the moment, but I am not sure this is a good practice. It doesn't seem right to package JMX Agent specific files inside the jar; a different file is needed with JBoss, for instance. I have not seen a good example of what this descriptor file is expected to contain, especially for DynamicMBean where the attributes my not be known at deployment time. If you know of an example, please post the url. Next the Descriptor How To suggests that "You may also add MBean descriptions for custom components in org.apache.catalina.mbeans.mbeans-descriptor.xml file." After some searching, I think this file is normally only contained in the catalina.jar file in the server/lib directory. This feels like messing with the Tomcat internals. Ideally, I wouldn't want our new MBeans exposed as part of Tomcat itself. So, I don't understand when or why we should modify that file. To provide an DynamicMBean deployment example, I've attached a simple "LightBulb" class to be managed, as well as a very naive DynamicMBean to manage it. If we really had an application this simple, we probably wouldn't be using a DynamicMBean, but I've tried to create something simple enough to let us focus on the deployment issues. Any input (kind or cruel) is welcome. Cheers, -- Eric -- Eric Herman, Software Developer MySQL AB, www.mysql.com Office: +1 206 720 1724 Are you MySQL certified? www.mysql.com/certification package scratch; import java.lang.reflect.Constructor; import java.util.*; import javax.management.*; import com.mysql.management.util.*; /** @author Eric Herman <[EMAIL PROTECTED]> */ public class LightBulbDynamicMBean implements DynamicMBean { private LightBulb lightBulb; private MBeanConstructorInfo[] consInfo; private MBeanOperationInfo[] opsInfo; private MBeanNotificationInfo[] notesInfos; public LightBulbDynamicMBean() { this.lightBulb = new LightBulb("white"); this.notesInfos = new MBeanNotificationInfo[0]; initConstructors(); initOperations(); } private void initConstructors() { Constructor con = getClass().getConstructors()[0]; consInfo = new MBeanConstructorInfo[1]; consInfo[0] = new MBeanConstructorInfo("Light Bulb", con); } private MBeanAttributeInfo[] getAttributeInfos() { List attInfs = new ArrayList(); Iterator iter = lightBulb.getOptions().entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); String attName = (String) entry.getKey(); String description = ""; attInfs.add(new MBeanAttributeInfo(attName, String.class.getName(), description, true, true, false)); } return (MBeanAttributeInfo[]) attInfs .toArray(new MBeanAttributeInfo[attInfs.size()]); } private void initOperations() { this.opsInfo = new MBeanOperationInfo[2]; setOnOpInfo(); opsInfo[1] =
RE: ResultSupport class
Where is it? -Original Message- From: Julian [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 1:43 PM To: Tomcat Users List Subject: Re: ResultSupport class Figured it out. Nevertheless thanks (it had driven me bonkers). Julian wrote: > > I'm a newbie and would be grateful if anyone could quickly tell me where > the 'ResultSupport' class and the 'Result' now live. They used to be in > javax.servlet.jsp.jstl.sql.* library but don't seem to be any more. > > Thanks > Julian > > - > 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: Newbie - JDBC problem "Name is not bound in this context"
d_l wrote: > > On 9 Aug 2004 at 17:00, ohaya ohaya-at-cox.net |Tomcat User List| wrote: > > > Now the thing that I'm wondering is where did those others come from. > > At this point, it's clear that Tomcat must've created them (I'm 100% > > sure I didn't create them), at some point. I'm just not sure when or > > why... > > Jim .. thanks for taking the time to check this out .. > > I'll try to track down when/how they are created .. as a learning > experience .. probably something to do with "automatic application > deployment" (that's my best guess). > > Look in Manager | Tomcat Server | Service (CATALINA) | Host > (localhost) .. the context references are defined therein (but in my > case blank entries for the jsp-examples and servlets-examples). d_l, I'm assuming you meant "Tomcat Administration", not "Tomcat Manager" :)... Ok, if I go to where you indicated, it shows all of the tree-type display of Contexts: / /admin /balancer /jsp-examples /manager /new /servlets-examples /tomcat-docs /webdav Something labeled Logger for Host(localhost) Are you saying that all of the above Contexts don't show up under Contexts? Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie - JDBC problem "Name is not bound in this context"
> > There are 2 ways for the {tomcat}/conf/{...}.xml files to be created: > > 1/ META-INF/context.xml is extracted from a WAR file when it is deployed > and copied there. > (Unless the matching XML file already exists under conf/, in which case > the WAR file's context.xml is ignored) > > 2/ The file is manually copied there by someone. QM, I'll try the "experiment" that you suggested, but FYI, there are no .WAR files in either the unzipped directories from just unzipping, or in any subdirectories under my working [TOMCAT HOME]. If those extra .xml files got created because of #1 above, would you expect to find some files named .war? Also, there are no directories named "META-INF" or files called "context.xml". I'll post back in a bit after I've tried the bit with changing the Engine name... Jim > > The servlet-examples.xml and jsp-examples.xml files are included in the > default Tomcat distro, and remain there unless explicitly removed. For > example, to address the issue mentioned in point #1, I periodically > clear out the conf/{...}/*.xml files. > > Here's an experiment and learning exercise for you: edit server.xml, > change the element's "name" attr, then bounce Tomcat. Notice > under {tomcat}/conf/ there's a new dir that matches the name. > > What files are under that directory, now? > > I realize this may be confusing at times because there's a lot to > absorb when leaping into Tomcat (or any container, for that matter). > Give it time, and soon you'll know all of this by heart. =) > > btw, if you use separate Tomcat instances (check the docs for > CATALINA_HOME vs CATALINA_BASE) then this is moot: the only > context-related XML files under {instance dir}/conf/ will be the ones > for your webapps, not the samples. ;) But that's another story for > another day. > > -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]
Re: Tomcat4 won't start
Hey Matt, I would recommend installing Tomcat 5 instead of 4 unless you have a requirement to use Tomcat 4. BTW, I have Tomcat 5 installed instead of 4. Good luck, -Conrad > Hello all. > > I am a new user of Tomcat4, running on a Windows 2000 server. I am a > Canto Cumulus user; Tomcat4 is used to publish my image database. I > have upgraded all my software recently (including Tomcat4), and after > following ALL of the suggestions of Canto, I cannot get Tomcat4 to start > (whether using the startup.bat file or manually starting through the > Manager. I get an error message that tells me Windows cannot start > Tomcat4, and this may be a Windows error, and I should see the > administrator. I get no log files to check. > > I have installed the JRsdk 1.4.2_05, and verified that JAVA_HOME is set > correctly. > > Has anyone encountered this type of error, and if so, what sort of > solutions are needed? > > Thanks for any help, > > Matt > > M.L. Buffington > Dept. of Entomology > UC Riverside, Riverside, CA > 92521 USA > 909-787-5740 > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat manager app stops responding
Thanks for all the help guys, I think I found the problem. It appears that after a delay the next attempt to access the database to sign on with the SingleSignOn valve, using a JDBCRealm, throws SocketExceptions about a Broken pipe. I think my firewall is resetting the connection when it does not detect any traffic after 3 hours. I am looking into how long I should make the timeout, suggestions? The thread kill and the gc statements helped a lot and I am sure will come in handy in the future, I opened another thread about why DBCP is not used for SingleSignOn, check it out if you are interested. Thanks again, Keith -Original Message- From: Keith Bottner [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 9:08 AM To: 'Tomcat Users List' Subject: RE: Tomcat manager app stops responding Great, when it freezes I will use it. BTW, have GC statistics now being dumped. Hopefully that with the logs and the thread dump will lead me to the problem. Thanks, Keith -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 8:56 AM To: Tomcat Users List Subject: RE: Tomcat manager app stops responding Issue a kill -3 to the java process will dump all the threads. Ta Matt -Original Message- From: Keith Bottner [mailto:[EMAIL PROTECTED] Sent: 09 August 2004 14:52 To: 'Tomcat Users List' Subject: RE: Tomcat manager app stops responding My log files were being deleted by the deployment process so I was getting nothing from them, I fixed that problem and will watch the logs today and see if they show anything when it occurs. BTW, any ideas on how to get a thread dump of the JVM on Linux? I am definitely not out of memory but I will modify CATLINA_OPTS to dump the GC statistics. Please check back tomorrow after I have a day of logs. Thanks, Keith -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 8:34 AM To: Tomcat Users List Subject: Re: Tomcat manager app stops responding On Mon, Aug 09, 2004 at 04:52:18AM -0500, Keith Bottner wrote: : 1] After my web application has been running for some time then access to : /domain/manager/html never responds. It doesn't give me any kind of error, : the browser just continues to process the request without ever timing out. : Any ideas? A couple. A situation as generic as, "never responds" gets generic advice: 1/ Check a thread dump of the JVM (search the archives if you don't know how), see whether something's deadlocked. Slim chance, but worth a shot. 2/ Check memory usage and GC, perhaps use a profiler. GC can make an app appear several shades of unresponsive. 3/ check the logs : 2] Tomcat manager does NOT delete my .war file on undeploy, I don't know about this one, so I'll leave it for someone who does. -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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat stops responding
Thanks for all the help guys, I think I found the problem. It appears that after a delay the next attempt to access the database to sign on with the SingleSignOn valve, using a JDBCRealm, throws SocketExceptions about a Broken pipe. I think my firewall is resetting the connection when it does not detect any traffic after 3 hours. I am looking into how long I should make the timeout, suggestions? The thread kill and the gc statements helped a lot and I am sure will come in handy in the future, I opened another thread about why DBCP is not used for SingleSignOn, check it out if you are interested. Thanks again, Keith -Original Message- From: Keith Bottner [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 9:08 AM To: 'Tomcat Users List' Subject: RE: Tomcat stops responding I have allocated 256M to the JVM running Tomcat and it has never gone above 25M. I have received no out of memory exceptions. The machine in question has 2gig of RAM. -Original Message- From: Nandish Rudra [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 8:45 AM To: 'Tomcat Users List' Subject: RE: Tomcat stops responding Check logs for outofmemory exception. If the log has no exceptions check your memory usage. NR -Original Message- From: Keith Bottner [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 9:41 AM To: [EMAIL PROTECTED] Subject: Tomcat stops responding After I deploy my application everything immediately works fine, no problems. Then after some time (haven't narrowed it down yet but it seems to be several hours) Tomcat stops responding to requests. During this time there are little to no requests of Tomcat. Does anybody know why this might be occurring? Thanks in advance, Keith Have you ever noticed that the word 'complaint' and 'compliant' are spelled almost the same except the transposition of a single letter. I wonder why that is? - 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]
DBCP and SingleSignOn
It does not appear that SingleSignOn uses DBCP, in fact it looks as if it opens a single connection the first time it is used and then attempts to re-use that connection indefinitely. From my understanding on how Tomcat works there would only be a single SignSignOn Valve instance so everyone attempting to sign in would be trying to use the same connection. In addition it also has the side effect that if your DB is on the other side of a firewall and no one signs in for some time and your firewall kills unused connections that the next time someone attempts to sign on the application appears to stall as Tomcat, SingleSignOn and your database try to figure out why you got a SocketException. So my question is... Is there any reason why SingleSignOn does NOT use DBCP? And is my logic above right that everyone signing in is going to be trying to use the same database connection? Thanks for any insight that you can give me... Keith Have you ever noticed that the word 'complaint' and 'compliant' are spelled almost the same except the transposition of a single letter. I wonder why that is?
org.apache.jasper.JasperException
I am getting this error, what could be the reason... 2004-08-09 09:32:08 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: File "/tags/struts-html" not found at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java :214) at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java :174) at org.apache.jasper.compiler.JspParseEventListener.processTaglibDirective(JspP arseEventListener.java:1170) at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve ntListener.java:765) at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList ener.java:125) at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:255) at org.apache.jasper.compiler.Parser.parse(Parser.java:1145) at org.apache.jasper.compiler.Parser.parse(Parser.java:1103) at org.apache.jasper.compiler.Parser.parse(Parser.java:1099) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:214) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:176) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:188) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie - JDBC problem "Name is not bound in this context"
On 9 Aug 2004 at 17:00, ohaya ohaya-at-cox.net |Tomcat User List| wrote: > Now the thing that I'm wondering is where did those others come from. > At this point, it's clear that Tomcat must've created them (I'm 100% > sure I didn't create them), at some point. I'm just not sure when or > why... Jim .. thanks for taking the time to check this out .. I'll try to track down when/how they are created .. as a learning experience .. probably something to do with "automatic application deployment" (that's my best guess). Look in Manager | Tomcat Server | Service (CATALINA) | Host (localhost) .. the context references are defined therein (but in my case blank entries for the jsp-examples and servlets-examples). dl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Servlet.init() error
On Mon, Aug 09, 2004 at 05:07:07PM -0400, [EMAIL PROTECTED] wrote: : Thanks for your response QM. I would really like to upgrade to Tomcat 4.1 : or 5.0. I've read : great things about the Admin webapp and the other features, I just don't : know the best manner : to proceed. Is there a specific version I should upgrade to. At the moment : I only have this one : web application that I deployed manually by creating a web.xml fragment. : Any suggestions?? 1/ 5.0.27 is the latest stable version. Sticking with the 5.x series (for now, at least) ensures the greatest possibility of list support, since that seems to be what most people here run. 2/ Developing a migration plan is out of the realm of this e-mail, but I have a brief 4.1 -> 5.x guide on my website (http://www.BrandXDev.net). For the most part: . note where you're using container-specific code . note where you're using servlet/JSP features that are deprecated in the 2.4/2.0 releases, respectively . test, test, test before you switch the production install -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: Newbie - JDBC problem "Name is not bound in this context"
On Mon, Aug 09, 2004 at 05:00:22PM -0400, ohaya wrote: : I just got back, and as I mentioned earlier, I unzipped the original : .ZIP file, and I guess at least PART of the mystery is solved. : Immediately after unzipping the file, I checked in the : conf\Catalina\localhost directory, and there are only the 3 .xml files : that you mentioned. : : Now the thing that I'm wondering is where did those others come from. : At this point, it's clear that Tomcat must've created them (I'm 100% : sure I didn't create them), at some point. I'm just not sure when or : why... There are 2 ways for the {tomcat}/conf/{...}.xml files to be created: 1/ META-INF/context.xml is extracted from a WAR file when it is deployed and copied there. (Unless the matching XML file already exists under conf/, in which case the WAR file's context.xml is ignored) 2/ The file is manually copied there by someone. The servlet-examples.xml and jsp-examples.xml files are included in the default Tomcat distro, and remain there unless explicitly removed. For example, to address the issue mentioned in point #1, I periodically clear out the conf/{...}/*.xml files. Here's an experiment and learning exercise for you: edit server.xml, change the element's "name" attr, then bounce Tomcat. Notice under {tomcat}/conf/ there's a new dir that matches the name. What files are under that directory, now? I realize this may be confusing at times because there's a lot to absorb when leaping into Tomcat (or any container, for that matter). Give it time, and soon you'll know all of this by heart. =) btw, if you use separate Tomcat instances (check the docs for CATALINA_HOME vs CATALINA_BASE) then this is moot: the only context-related XML files under {instance dir}/conf/ will be the ones for your webapps, not the samples. ;) But that's another story for another day. -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: Tomcat4 won't start
Matt Buffington wrote: have upgraded all my software recently (including Tomcat4), and after following ALL of the suggestions of Canto, I cannot get Tomcat4 to start (whether using the startup.bat file or manually starting through the Manager. I get an error message that tells me Windows cannot start Tomcat4, and this may be a Windows error, and I should see the administrator. I get no log files to check. Try to start it using `%CATALINA_HOME%\bin\catalina.bat run` in a cmd window so you can see the error message(s)... -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat4 won't start
Hello all. I am a new user of Tomcat4, running on a Windows 2000 server. I am a Canto Cumulus user; Tomcat4 is used to publish my image database. I have upgraded all my software recently (including Tomcat4), and after following ALL of the suggestions of Canto, I cannot get Tomcat4 to start (whether using the startup.bat file or manually starting through the Manager. I get an error message that tells me Windows cannot start Tomcat4, and this may be a Windows error, and I should see the administrator. I get no log files to check. I have installed the JRsdk 1.4.2_05, and verified that JAVA_HOME is set correctly. Has anyone encountered this type of error, and if so, what sort of solutions are needed? Thanks for any help, Matt M.L. Buffington Dept. of Entomology UC Riverside, Riverside, CA 92521 USA 909-787-5740 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Servlet.init() error
Thanks for your response QM. I would really like to upgrade to Tomcat 4.1 or 5.0. I've read great things about the Admin webapp and the other features, I just don't know the best manner to proceed. Is there a specific version I should upgrade to. At the moment I only have this one web application that I deployed manually by creating a web.xml fragment. Any suggestions?? Thanks in advance. - Original Message - From: "QM" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Sunday, August 08, 2004 11:24 PM Subject: Re: Tomcat Servlet.init() error > On Sun, Aug 08, 2004 at 11:14:50PM -0400, [EMAIL PROTECTED] wrote: > : Configuration: Solaris 9, Apache 1.3, Tomcat 4.0.1, default JSDK > > First of all, is there any reason you're using Tomcat 4.0? This > version is no longer under active development. 4.1 or, even better, 5.0 > have a wider user base. Upgrading would significantly improve your > chances of getting support via the list, were you to encounter a > version-specific problem. > > > : I'm new to Tomcat and I recently changed some of the configuration > : files while deploying > : my web application. After doing so I encountered this problem for some time, > > Specifically, what did you change? > Did the problem persist when you rolled back said changes? > > > : Each time I attempt to display a JSP page > : I get the following error: > : > : [snip] > : Apache Tomcat 4.0.1 HTTP Status 500 - Internal Server Error > : javax.servlet.ServletException: Servlet.init() for servlet jsp threw > : exceptionetc... root cause java.lang.NoClassDefFoundError: > : org/apache/tomcat/logging/Logger > > NoClassDefFoundError usually indicates some kind of class mismatch -- > either you have a duplicate (and newer) log4j JAR in the runtime mix, or > you've built and deployed using different versions. > > -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]
serialized objects invalidating session
I have a web application that is storing 2 objects in each user's session. I recently made each of those objects implement the Serializable interface. What I now notice is that if I stop and restart Tomcat (Tomcat 5.0) the sessions are no longer valid and as a result, the serialized objects are gone. However, if I refactor those the 2 objects to no longer implement the Serializable interface, then my sessions are recovered from disk after server stop and start, but of course, my non-serialized objects are no longer around. Help! BTW, I am not seeing any errors in the Tomcat logs when I do serialize those objects. Regards, Carey
Re: Newbie - JDBC problem "Name is not bound in this context"
d_l wrote: > > On 9 Aug 2004 at 12:37, QM qm300-at-brandxdev.net |Tomcat User Li wrote: > > > > http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html > > > > My previous message will make more sense then, and both of your > > questions should be answered. > > > I referred to that same link in an earlier posting .. but I'm afraid it is > still not clear to me (after reading that tome again) why two separate > installers of Tomcat 5.0.27 should see different content > (webapps.xml) in ..\Catalina\locahost\ > > "Something" must be different between the two 5.0.27 setups .. can > you offer another clue? Are you referring to "Automatic Application > Deployment"? > > Sure enough, the second question (on webappsname.xml) is > answered clearly enough. > > Thanks. d_l, I just got back, and as I mentioned earlier, I unzipped the original .ZIP file, and I guess at least PART of the mystery is solved. Immediately after unzipping the file, I checked in the conf\Catalina\localhost directory, and there are only the 3 .xml files that you mentioned. Now the thing that I'm wondering is where did those others come from. At this point, it's clear that Tomcat must've created them (I'm 100% sure I didn't create them), at some point. I'm just not sure when or why... Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and Apache Axis Security
Have you tried access it from the Principal. GenericPrincipal p = (GenericPrincipal)request.getUserPrincipal(); String uid = p.getName(); String passwd = p.getPassword(); Srofe, Douglas (c) wrote: We use single sign for our Tomcat applications. We have another Tomcat that hosts various web services. I would like to be able to send the logged on users name and password as credentials to the web service and have Tomcat authenticate it. I have tested this part with a hardcoded user name and password and this works fine. But I need to send the username and password used when the user logged on. How do I get access to the password that was used when the user logged on so I can send it as part of the credentials to the web service? Am I going to have to write custom authenticators and realms in order to do this? Thanks for any response. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ResultSupport class
Figured it out. Nevertheless thanks (it had driven me bonkers). Julian wrote: I'm a newbie and would be grateful if anyone could quickly tell me where the 'ResultSupport' class and the 'Result' now live. They used to be in javax.servlet.jsp.jstl.sql.* library but don't seem to be any more. Thanks Julian - 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]
ResultSupport class
I'm a newbie and would be grateful if anyone could quickly tell me where the 'ResultSupport' class and the 'Result' now live. They used to be in javax.servlet.jsp.jstl.sql.* library but don't seem to be any more. Thanks Julian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: configre datasource in server.xml
On Mon, Aug 09, 2004 at 03:28:23PM -0400, Shilpa Nalgonda wrote: : Now my question is can i put the datasource configuration under : TOMCAT_HOME/conf/server.xml.. That's where it's supposed to go, yes. : or should i create a new server.xml with just the datasource configuration : under WEB_INF folder. You could try this, and see whether it loads... ;) but I'd doubt it. Should you upgrade to Tomcat 5, there are facilities to put all context-related info in a separate, per-context (-webapp) file. Perhaps that's what you're thinking of doing? -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]
Tomcat and Apache Axis Security
We use single sign for our Tomcat applications. We have another Tomcat that hosts various web services. I would like to be able to send the logged on users name and password as credentials to the web service and have Tomcat authenticate it. I have tested this part with a hardcoded user name and password and this works fine. But I need to send the username and password used when the user logged on. How do I get access to the password that was used when the user logged on so I can send it as part of the credentials to the web service? Am I going to have to write custom authenticators and realms in order to do this? Thanks for any response.
Tomcat 5.0.27 Win2k sp4, service.bat JVM Options
Hello, I am running Tomcat 5.0.27 on a Windows 2000 sp4 machine as a service. It appears as though the JVM settings that I am trying to use are not being recognized by the system, variables such as -Xms512m or -Xmx512m. Here is what I have tried: 1. Configure Tomcat program that installs with Tomcat5. In 5.0.27 there are boxes for initial heap, etc. under the Java or JVM tab where I tried setting values. I also tried adding them to the Options box. Restarting the service shows they are not detected. 2. Editing the registry. I have seen many ways to do this. I've tried the set where I add "JVM Option Count"=x and "JVM Option Number 1", etc. I have also tried adding the settings to the registry as "JAVA_OPTS", "JAVAOPTS", and "JAVAOPTIONS" to no avail. And where in the registry do I put it really? Does it go under Current Control Set->Services->Tomcat5 or does it go under Software->Apache blah blah->procrun or whatever it is. 3. Using service.bat. This is just confusing. There's no documentation that's worthwhile about procrun. The changelog makes it look like adding #'s instead of spaces was fixed in 5.0.23, but I don't know if that is the case or not. Anyway, can anyone post me an example of how to modify service.bat to include -Xms, -Xms, and -Xss? Maybe I'm putting it in the wrong place? I know if I have an environment variable called JAVA_OPTS and I run from catalina.bat that my JVM settings definitely show up correctly. Why is it so hard for them to show up as a service? Using Windows sucks, but I don't have a choice. Any help will be greatly appreciated. Thanks, b _ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
configre datasource in server.xml
I have configured for datasouce on Tomcat 4.1.03 in /TOMCAT_HOME/conf/server.xml file. My application runs fine on my windows desktop. Now i am in the process of migrating that applicATION ON lINUX MACHINE. On Unix, we have apache installed as connector, which routes requests to Tomcat server. so whenever we restart tomcat we also restart apache. Now my question is can i put the datasource configuration under TOMCAT_HOME/conf/server.xml.. or should i create a new server.xml with just the datasource configuration under WEB_INF folder. Below is the configuration which i want to add in server.xml factory org.apache.commons.dbcp.BasicDataSourceFactory maxActive 20 maxIdle 10 maxWait 1 username antonio password play driverClassName org.gjt.mm.mysql.Driver url jdbc:mysql://localhost:3306/prototypedb?autoReconnect=true - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RequestInterceptor alternative in Tomcat 5?
Hi, It's called a Filter (javax.servlet.Filter, see the Servlet Spec) if you want to be portable, or a Valve (see the Tomcat configuration reference documentation) if you don't care. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Arif Siddiqui [mailto:[EMAIL PROTECTED] >Sent: Monday, August 09, 2004 2:24 PM >To: [EMAIL PROTECTED] >Subject: RequestInterceptor alternative in Tomcat 5? > >What is the alternative to RequestInterceptor (server.xml) directive >in Tomcat 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: JNDI question
Hi, Yes, there are ways. Two general approaches: - Using JMX (not very convenient at the moment, but doable if you're willing to write some code) - By casting the DataSource you get from the JNDI lookup to the implementation type, e.g. org.apache.commons.dbcp.BasicDataSource or whatever, and then calling the specific methods provides by the implementation class. You'll find that DBCP and other connection pooling providers give you all these methods you're asking for. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Randy Paries [mailto:[EMAIL PROTECTED] >Sent: Monday, August 09, 2004 2:37 PM >To: 'Tomcat Users List' >Subject: JNDI question > >Hello > >I am using Tomcat 5 with JNDI(mysql) > >Are there ways to get usages info from the POOL > >Like active connections, max connections (basically the state of the DB >Pool) > >Thanks for any help > > > >- >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: form-based login username and password encoding issue
You should be able to do this although I have never tried. Depending on your version of tomcat, you may need to adjust a few settings. See below. Mark REQUESTS There are a number of situations where there may be a requirement to use non-US ASCII characters in a URI. These include: - Parameters in the query string - Servlet paths There is a standard for encoding URIs (http://www.w3.org/International/O-URL-code.html) but this standard is not consistently followed by clients. This causes a number of problems. The functionality provided by Tomcat (4 and 5) to handle this less than ideal situation is described below. 1. The Coyote HTTP/1.1 connector has a useBodyEncodingForURI attribute which if set to true will use the request body encoding to decode the URI query parameters. - The default value is true for TC4 (breaks spec but gives consistent behaviour across TC4 versions) - The default value is false for TC5 (spec compliant but there may be migration issues for some apps) 2. The Coyote HTTP/1.1 connector has a URIEncoding attribute which defaults to ISO-8859-1. 3. The parameters class (o.a.t.u.http.Parameters) has a QueryStringEncoding field which defaults to the URIEncoding. It must be set before the parameters are parsed to have an effect. Things to note regarding the servlet API: 1. HttpServletRequest.setCharacterEncoding() normally only applies to the request body NOT the URI. 2. HttpServletRequest.getPathInfo() is decoded by the web container. 3. HttpServletRequest.getRequestURI() is not decoded by container. Other tips: 1. Use POST with forms to return parameters as the parameters are then part of the request body. RESPONSES = HTML META tags are ignored by Tomcat. You may use <%@ page pagEncoding="..." %> for JSPs. > -Original Message- > From: guy katz [mailto:[EMAIL PROTECTED] > Sent: Monday, August 09, 2004 3:11 PM > To: [EMAIL PROTECTED] > Subject: form-based login username and password encoding issue > > hi all; > > in my application, i let my users register to my site (with > username, password , etc.. ), when they do i programatically > take their username and password and move it to the > authentication tables of the datasource realm so they can > authenticate. i am using form-basd login. > > problem is that when a user enters a username ans password > characters that are not western europian, the authentication > process fails. > > is this a constraint of the fact that the user and password > are sent as parameters in the URL? (j_user, ...). > > are the parameters in the URL not encoded as UTF-8? can i > control this? > > thanks in advance. > > _ > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie - JDBC problem "Name is not bound in this context"
On 9 Aug 2004 at 12:37, QM qm300-at-brandxdev.net |Tomcat User Li wrote: > > http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html > > My previous message will make more sense then, and both of your > questions should be answered. > I referred to that same link in an earlier posting .. but I'm afraid it is still not clear to me (after reading that tome again) why two separate installers of Tomcat 5.0.27 should see different content (webapps.xml) in ..\Catalina\locahost\ "Something" must be different between the two 5.0.27 setups .. can you offer another clue? Are you referring to "Automatic Application Deployment"? Sure enough, the second question (on webappsname.xml) is answered clearly enough. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory Usage - Tomcat 5.0.25
Hello Yaov, You are correct I do have a few static varibles that point to running threads and some other objects. When the application is shutdown I ensure that each thread is destroyed and all static varibales are set to null, including thread identifiers, this should let my call to GC clear the memory. You are also right in saying that i should not depend on undeploy to reclaim all memory that the webapp was using, and I don't. Like I mentioned I do make sure all static variables get set to null before the application shuts down. It would be understandable if not all memory utilized by the webapp is reclaimed, but in my case absolutely no memory is being reclaimed. For example, say, i start tomcat and it starts with 30M initial memory usage without the application. Now when i deploy the application the size jumps by 8M to 38M. As the app is undeploy and re-deploy the memory usage jumps from 38M to 46-47M. Now this, if I am not wrong, is not how things should be. I would appreciate anymore suggestion that you or anyone may have. Regards, Nandish -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 1:35 PM To: Tomcat Users List Subject: RE: Memory Usage - Tomcat 5.0.25 Hi, I have a couple of ideas. One is that your webapp maintain static or shared references to objects that prevent them from being garbage collected, and therefore memory from returning to the heap. Another is that a webapp undeploy is not guaranteed to reclaim all memory used by the webapp anyways so to count on this behavior is not smart. It is expected that every time you reload your webapp the overall memory usage of the server will go up a bit, as not all objects are gone (for example, if you have a static reference than the old classloader and anything that references it strongly will remain in memory). Yoav Shapira Millennium Research Informatics >-Original Message- >From: Nandish Rudra [mailto:[EMAIL PROTECTED] >Sent: Monday, August 09, 2004 1:17 PM >To: Tomcat Users List (E-mail) >Subject: Memory Usage - Tomcat 5.0.25 > >Hello, > >I am having some memory issues while deploing/undeploying web applications >to Tomcat. I am using Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and >Ant >1.6.1 on GNU Linux 2.4.20-8. I use ant to compile my web application and >Tomcat's catalina-ant.jar to deploy it automatically. > >Here is my problem. When I undeploy/remove an application, Tomcat does not >reclaim the memory being used by the web application and when the >application is re-deployed/re-installed a significant increase in memory is >seen. This increase is obviously the memory usage by the new instance of >the >web application. > >Does anyone have any idea as to why this is happening? > >Regards, >NR > > >- >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]
JNDI question
Hello I am using Tomcat 5 with JNDI(mysql) Are there ways to get usages info from the POOL Like active connections, max connections (basically the state of the DB Pool) Thanks for any help - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1 and LD_ASSUME_KERNEL=2.4.1
Hi all, I am having problem where Tomcat 4.1.27 just stops after some random period of time. I am on RH9 and JDK 1.4.2. This seems to be the same problem reported earlier and a recommended fix was to set an environment variable LD_ASSUME_KERNEL=2.4.1. Can I simply put an "export LD_ASSUME_KERNEL=2.4.1" in my setenv.sh file? Also, I have heard other recommended values, such as LD_ASSUME_KERNEL=2.2.5; how would I find out which one to use? - Steve Hello. Is this the same problem I also asked yesterday about in thread "All threads are busy ... servlet status 75" Somewhere I read about setting the LD_ASSUME_KERNEL to 2.2.5 But I also read somewhere that this didn't help (www.junlu.com/msg/14450.html) QM wrote: > > On Thu, Jun 17, 2004 at 03:54:08PM -0400, Bradley Glonka wrote: > : Tomcat installaion on Red Hat Version 9 intermitnently stops > : Responding. > :Kernel 2.4.20-9 > > RedHat's custom kernels have backported the NPTL (Native Posix Thread > Library) routines from 2.5/2.6. Set the env var "LD_KERNEL_ASSUME" to > "2.4" to make non-NPTL code (such as your JDK) behave. > > That var may also be called "LD_ASSUME_KERNEL," I forget which. ;) > > : Can someone suggest how I can troubleshoot the problem. > > Other than the above: are there differences between the development env > and production env, other than the OS? Differences in RAM or JVM heap > settings can cause different GC behavior between the two. > > Furthermore, what sort of load-testing was done on the app before it > went live? > > -QM > > -- > -- Steven Peterson, President Frontier Productions, Inc. 310 Wesley Drive Chapel Hill, NC 27516 Tel: 919-942-1386 Fax: 919-933-2677 Creators of List Pilot Easier email broadcasting to your many different customers http://www.listpilot.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RequestInterceptor alternative in Tomcat 5?
What is the alternative to RequestInterceptor (server.xml) directive in Tomcat 5? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Problem with context reload
reloadable="true" is true to. i'm running 3.3.1a - Original Message - From: "QM" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, August 09, 2004 1:48 PM Subject: Re: Problem with context reload > On Mon, Aug 09, 2004 at 01:27:03PM -0400, Ernesto Navarro G?mez wrote: > : I'm using tomcat 3.3 and jdk 1.3, when recompile a class from my proyect i have to restart tomcat. My server.xml have > : > : > > > What about setting reloadable="true" for the webapp's element? > > While this doesn't answer your question directly, is there any reason > you're still running 3.x? > > -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]
Tomcat 5.0.19 not dispatching to servlet
Hello, I'm running Tomcat 5.0.19, Apache 2.0.49 and mod_jk2-2.0.4, stand alone (NOT in-process), on a W2K box. Tomcat is listening on port 8009 (port 8080 is commented out) and Apache passes all requests of type "/psi/servlet/* to Tomcat, via the workers2.properties file redirect (see below). I have a servlet defined in my web.xml file to load up at Tomcat startup. I've verified that the servlet is loading by writing debugging information in the servlet init() method. So, the servlet is loading at Tomcat startup but when Apache redirects the servlet request to Tomcat, I get a 404 served up by Tomcat. I know this because the Tomcat version is displayed at the bottom of the error page. I'm using a context configuration file to define my path and docbase (see below). This same configuration works with another application that uses Struts, .jsp and servlets. Any ideas? Thanks, Dave workers2.properties file: # Set level to ERROR or EMERG for production - check path [logger.file:0] level=ERROR file=C:/Apache2/logs/mod_jk2.log [logger] level=ERROR [config:] file=c:/Apache2/conf/workers2.properties debug=0 debugEnv=0 [uriMap:] info=Maps the requests. Options: debug debug=0 [channel.socket:localhost:8009] info=Ajp13 forwarding over socket port=8009 host=localhost lb_factor=1 group=lb disabled=0 debug=0 # Define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=${serverRoot}/logs/jk2.shm size=100 debug=0 disabled=0 [workerEnv:] info=Global server options timing=1 debug=0 logger=logger.file:0 # Announce a "status" worker [status:status] info=Status worker. Displays runtime information. [uri:/jkstatus/*] group=status:status [uri:/psi/servlet/*] info=PSI default context. group=lb debug=0 context configuration file: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with context reload
On Mon, Aug 09, 2004 at 01:27:03PM -0400, Ernesto Navarro G?mez wrote: : I'm using tomcat 3.3 and jdk 1.3, when recompile a class from my proyect i have to restart tomcat. My server.xml have : : What about setting reloadable="true" for the webapp's element? While this doesn't answer your question directly, is there any reason you're still running 3.x? -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: Multiple instances of Tomcat.
On Mon, Aug 09, 2004 at 10:04:56AM -0700, Bill Hughey wrote: : Second question: would it be possible if this works for the inner servlet to access memory (objects) instanciated by the outer servlet? Likely, no. Read on: : Note: I have noticed that servlets within the same context have access to each others memory, while servlets of different contexts do not. Anyone care to confirm, elaborate, explain, contradict? The Tomcat site has a doc on the product's layered classloader approach. (This concept isn't unique to Tomcat, but that's another story.) In short, each context (webapp) lives in its own classloader. -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: Apache-Tomcat on Linux MontaVista 3.1
On Mon, Aug 09, 2004 at 03:14:45PM +0100, Luis Filipe Correia (Ext_Altior) wrote: : I need to know if it's possible to run Apache-Tomcat on Linux MontaVista 3.1. : Does anyone have experience with this? Here's the big question: is there a suitable JDK implementation for Linux MontaVista? (I've never heard of this distro, so I don't know whether Sun's default Linux/i386 JDK runs on it.) If so, then Tomcat will most likely work. -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: Newbie - JDBC problem "Name is not bound in this context"
On Mon, Aug 09, 2004 at 10:14:04AM -0400, ohaya wrote: : 1) Any idea why d_l has only the 3 .xml files in : [tomcat]/conf/[...], whereas I have a bunch? As I indicated in an : earlier msg, I didn't create them. : 2) When you and others refer to "context.xml", are you referring to a : file that is literally named "context.xml", or do you mean "an file : containing the webapp's that is named .xml"? Please read http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html My previous message will make more sense then, and both of your questions should be answered. -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: Memory Usage - Tomcat 5.0.25
Hi, I have a couple of ideas. One is that your webapp maintain static or shared references to objects that prevent them from being garbage collected, and therefore memory from returning to the heap. Another is that a webapp undeploy is not guaranteed to reclaim all memory used by the webapp anyways so to count on this behavior is not smart. It is expected that every time you reload your webapp the overall memory usage of the server will go up a bit, as not all objects are gone (for example, if you have a static reference than the old classloader and anything that references it strongly will remain in memory). Yoav Shapira Millennium Research Informatics >-Original Message- >From: Nandish Rudra [mailto:[EMAIL PROTECTED] >Sent: Monday, August 09, 2004 1:17 PM >To: Tomcat Users List (E-mail) >Subject: Memory Usage - Tomcat 5.0.25 > >Hello, > >I am having some memory issues while deploing/undeploying web applications >to Tomcat. I am using Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and >Ant >1.6.1 on GNU Linux 2.4.20-8. I use ant to compile my web application and >Tomcat's catalina-ant.jar to deploy it automatically. > >Here is my problem. When I undeploy/remove an application, Tomcat does not >reclaim the memory being used by the web application and when the >application is re-deployed/re-installed a significant increase in memory is >seen. This increase is obviously the memory usage by the new instance of >the >web application. > >Does anyone have any idea as to why this is happening? > >Regards, >NR > > >- >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]
Memory Usage - Tomcat 5.0.25
It took the message a while to showup on the list so resent it with some modification. please disregard the first message. The problem does happen on Windows. I was looking at the wrong process. NR - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Memory Usage - Tomcat 5.0.25
Hello, I am having some memory issues while deploing/undeploying web applications to Tomcat. I am using Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and Ant 1.6.1 on GNU Linux 2.4.20-8. I use ant to compile my web application and Tomcat's catalina-ant.jar to deploy it automatically. Here is my problem. When I undeploy/remove an application, Tomcat does not reclaim the memory being used by the web application and when the application is re-deployed/re-installed a significant increase in memory is seen. This increase is obviously the memory usage by the new instance of the web application. Does anyone have any idea as to why this is happening? Regards, NR - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with context reload
Hi: I'm using tomcat 3.3 and jdk 1.3, when recompile a class from my proyect i have to restart tomcat. My server.xml have Any help? Ernesto
Memory Usage - Tomcat 5.0.25
Hello, I am having some memory issues while deploing/undeploying web applications to Tomcat. I am using Tomcat 5.0.25 with Java 2 SDK version 1.4.2_04 and Ant 1.6.1 on GNU Linux 2.4.20-8. I use ant to compile my web application and Tomcat's catalina-ant.jar to deploy it automatically. Here is my problem. When I undeploy/remove an application, Tomcat does not reclaim the memory being used by the web application and when the application is re-deployed/re-installed a significant increase in memory is seen. This increase is obviously the memory usage by the new instance of the web application. Another important detail to note is that, this behaviour is not seen, in a same setup, on a Windows 2000 machine. Does anyone have any idea as to why this is happening? Regards, NR - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple instances of Tomcat.
I am working on converting a standalone content management system that has embedded Tomcat and an admin servlet as one of its components. My intent is to turn this application into a servlet itself running under a standalone Tomcat5. My question: is it possible to run embedded Tomcat5 within a servlet that is itself running under Tomcat5? Second question: would it be possible if this works for the inner servlet to access memory (objects) instanciated by the outer servlet? Note: I have noticed that servlets within the same context have access to each others memory, while servlets of different contexts do not. Anyone care to confirm, elaborate, explain, contradict? Thanks for any help.
Re: Re: Newbie - JDBC problem "Name is not bound in this context"
> > From: "d_l" <[EMAIL PROTECTED]> > Date: 2004/08/09 Mon AM 10:24:12 EDT > To: [EMAIL PROTECTED] > Subject: Re: Newbie - JDBC problem "Name is not bound in this context" > > On 9 Aug 2004 at 9:29, ohaya ohaya-at-cox.net |Tomcat User List| wrote: > > > As to your implied question above of "why do I have all the .XML files, > > whereas you only have 3?", is it possible that whoever built the Tomcat > > installation created it that way? > > My 5.0.27 binary was straight out of the can from the Apache site .. and I > configured > it myself on my localhost. I've tried to download Tomcat 5.0.27 afresh several times > .. > always getting the same results .. three context.xml files. > > context.xml files here .. > > C:\Program Files\Apache Group\Tomcat 5.0\conf\Catalina\localhost > > I can also see references to context for all webapps in Admin Manager > Tomcat server | Service (CATALINA) | Host (localhost) .. but they are empty entries > in Admin Manager .. > > but no sign of the jsp-examples.xml and servlets-examples.xml files. > > The jsp and servlets examples all work .. so it must be a glitch somewhere in > setting > up. That is really weird! I'll try to unzip the original .ZIP that I downloaded, and see if the other .xml files are there to begin with, but I won't be able to do that until this evening. Will post back then. Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using a META-INF\context.xml doesn't work as expected with Manager app .war upload
Hola, >That means, there is no point in trying to put a >docBase path into a \META-INF\context.xml of a .WAR that doesn't match the >war's >filename. Correct? That's not what I said, but I think you might be right anyways. One way to find out is try as you did... >Will at least the rest of the context.xml element propertly used, >when >providing e.g. cookies="false" or debug=""? It should. Note that debug="" is fairly useless on the latest releases as we're mostly on commons-logging by now. 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: Using a META-INF\context.xml doesn't work as expected with Manager app .war upload
Hi! That means, there is no point in trying to put a docBase path into a \META-INF\context.xml of a .WAR that doesn't match the war's filename. Correct? That is because I just tried to name my .war file "utility2.war" an still map to docBase "utility" that didn't work either... But would be logically considering your statement, although it's not about "nested" docBase, but any docBase that doesn't match the war's filename. Will at least the rest of the context.xml element propertly used, when providing e.g. cookies="false" or debug=""? Thx & Cheers, Michael Zitat von "Shapira, Yoav" <[EMAIL PROTECTED]>: > > Hi, > I don't think we support a nested docBase when using a WAR file, such as > tests/whatever. The WAR itself is the docBase if packed, or the WAR's > root directory if unpacked. > > Yoav Shapira > Millennium Research Informatics > > > >-Original Message- > >From: Michael Echerer [mailto:[EMAIL PROTECTED] > >Sent: Monday, August 09, 2004 11:59 AM > >To: [EMAIL PROTECTED] > >Subject: Using a META-INF\context.xml doesn't work as expected with > Manager > >app .war upload > > > > > >Hi, > > > >I use Tomcat 5.0.19. > > > >I'm playing around with the Manager web application and want to deploy > a > >.WAR > >file that contains a META-INF\context.xml deployment descriptor. > > > >Deploying the .WAR file using the upload feature works, and the > context.xml > >that > >I put into the META-INF\ is copied (but renamed?! to utility.xml) to > >conf\Catalina\localhost as expected. > > > >The problem is that I provide this context.xml: > > > > > > > >So I would suggest that the .WAR file is uploaded and unpacked to > >webapps/tests/utility. But it is not! It's straightforward unpacked to > >/webapps/utility. > >Finally the docBase in utility.xml (alias context.xml) doesn't match > the > >real > >location. :-( Thus the context is not accessible. > > > >Is this the expected result? > >Is it only possible to deploy a context directly to webapps when using > the > >manager application and the META-INF\context.xml? - Or am I missing > >something. > > > >Hope you can help! > > > >Thanks > >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] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using a META-INF\context.xml doesn't work as expected with Manager app .war upload
Hi, I don't think we support a nested docBase when using a WAR file, such as tests/whatever. The WAR itself is the docBase if packed, or the WAR's root directory if unpacked. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Michael Echerer [mailto:[EMAIL PROTECTED] >Sent: Monday, August 09, 2004 11:59 AM >To: [EMAIL PROTECTED] >Subject: Using a META-INF\context.xml doesn't work as expected with Manager >app .war upload > > >Hi, > >I use Tomcat 5.0.19. > >I'm playing around with the Manager web application and want to deploy a >.WAR >file that contains a META-INF\context.xml deployment descriptor. > >Deploying the .WAR file using the upload feature works, and the context.xml >that >I put into the META-INF\ is copied (but renamed?! to utility.xml) to >conf\Catalina\localhost as expected. > >The problem is that I provide this context.xml: > > > >So I would suggest that the .WAR file is uploaded and unpacked to >webapps/tests/utility. But it is not! It's straightforward unpacked to >/webapps/utility. >Finally the docBase in utility.xml (alias context.xml) doesn't match the >real >location. :-( Thus the context is not accessible. > >Is this the expected result? >Is it only possible to deploy a context directly to webapps when using the >manager application and the META-INF\context.xml? - Or am I missing >something. > >Hope you can help! > >Thanks >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]
Using a META-INF\context.xml doesn't work as expected with Manager app .war upload
Hi, I use Tomcat 5.0.19. I'm playing around with the Manager web application and want to deploy a .WAR file that contains a META-INF\context.xml deployment descriptor. Deploying the .WAR file using the upload feature works, and the context.xml that I put into the META-INF\ is copied (but renamed?! to utility.xml) to conf\Catalina\localhost as expected. The problem is that I provide this context.xml: So I would suggest that the .WAR file is uploaded and unpacked to webapps/tests/utility. But it is not! It's straightforward unpacked to /webapps/utility. Finally the docBase in utility.xml (alias context.xml) doesn't match the real location. :-( Thus the context is not accessible. Is this the expected result? Is it only possible to deploy a context directly to webapps when using the manager application and the META-INF\context.xml? - Or am I missing something. Hope you can help! Thanks Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP Precompilation in Tomcat 5.0.26
Hello: I am attempting to upgrade from Tomcat 4.0.6 to 5.0.26 (embedded in JBoss 3.2.5). However, following the upgrade, I can no longer seem to precompile my JSPs as I did before. The following build.xml extract worked fine in 4.0.6: Follwing the 5.0.26 upgrade, this now produces errors such as the following: [jasperc] org.apache.jasper.JasperException: Unrecognized option: -v2. Use -help for help. I have also unsuccessfuly tried the apparently new, Tomcat 5 recommended way of precompiling as follows: This produces the following error java.lang.IncompatibleClassChangeError: Implementing class What am I missing and/or not doing in the new version? What does this error mean in this context and how can I get more information about it (for example what class is being changed in an incompatible manner)? This is a stock Tomcat 5.0.26/JBoss 3.2.5 installation. I'd appreciate any and all tips on what to investigate or how I might track this down and resolve it. Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie - JDBC problem "Name is not bound in this context"
On 9 Aug 2004 at 9:29, ohaya ohaya-at-cox.net |Tomcat User List| wrote: > As to your implied question above of "why do I have all the .XML files, > whereas you only have 3?", is it possible that whoever built the Tomcat > installation created it that way? My 5.0.27 binary was straight out of the can from the Apache site .. and I configured it myself on my localhost. I've tried to download Tomcat 5.0.27 afresh several times .. always getting the same results .. three context.xml files. context.xml files here .. C:\Program Files\Apache Group\Tomcat 5.0\conf\Catalina\localhost I can also see references to context for all webapps in Admin Manager Tomcat server | Service (CATALINA) | Host (localhost) .. but they are empty entries in Admin Manager .. but no sign of the jsp-examples.xml and servlets-examples.xml files. The jsp and servlets examples all work .. so it must be a glitch somewhere in setting up. dl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache-Tomcat on Linux MontaVista 3.1
Hi, I need to know if it's possible to run Apache-Tomcat on Linux MontaVista 3.1. Does anyone have experience with this? Thanks! Regards Luís Correia
Re: Newbie - JDBC problem "Name is not bound in this context"
QM wrote: > > On Mon, Aug 09, 2004 at 09:29:51AM -0400, ohaya wrote: > : > BUT .. in my Tomcat 5.0.27 .. I only see three .xml files in above > : > location .. > : > > : > admin.xml > : > balancer.xml > : > manager.xml > : > > : > no other .xml files (context.xml files) show up such as > > If there is no context.xml, as with the examples, then Tomcat won't > create (copy) the file to {tomcat}/conf/{...}. > > Take note: if you are using a WAR file and make changes to the internal > context.xml file, delete the one under {tomcat}/conf/{...} before you > bounce the process. At least for now, Tomcat doesn't check a whether a > WAR file's context.xml is newer than its copy under the conf dir. > QM, A couple of questions: 1) Any idea why d_l has only the 3 .xml files in [tomcat]/conf/[...], whereas I have a bunch? As I indicated in an earlier msg, I didn't create them. 2) When you and others refer to "context.xml", are you referring to a file that is literally named "context.xml", or do you mean "an file containing the webapp's that is named .xml"? I've seen references to "context.xml" in various places, but there are no files named "context.xml" in my Tomcat subdirs. Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Intercepting RMI over IIOP calls
Hi, I wish to intercept RMI over IIOP calls made from Tomcat and add some information (in the form of ServiceContext) to them. What is the best way to go about doing it. Does Tomcat support the CORBA standard org.omg.PortableInterceptor? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat manager app stops responding
Great, when it freezes I will use it. BTW, have GC statistics now being dumped. Hopefully that with the logs and the thread dump will lead me to the problem. Thanks, Keith -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 8:56 AM To: Tomcat Users List Subject: RE: Tomcat manager app stops responding Issue a kill -3 to the java process will dump all the threads. Ta Matt -Original Message- From: Keith Bottner [mailto:[EMAIL PROTECTED] Sent: 09 August 2004 14:52 To: 'Tomcat Users List' Subject: RE: Tomcat manager app stops responding My log files were being deleted by the deployment process so I was getting nothing from them, I fixed that problem and will watch the logs today and see if they show anything when it occurs. BTW, any ideas on how to get a thread dump of the JVM on Linux? I am definitely not out of memory but I will modify CATLINA_OPTS to dump the GC statistics. Please check back tomorrow after I have a day of logs. Thanks, Keith -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 8:34 AM To: Tomcat Users List Subject: Re: Tomcat manager app stops responding On Mon, Aug 09, 2004 at 04:52:18AM -0500, Keith Bottner wrote: : 1] After my web application has been running for some time then access to : /domain/manager/html never responds. It doesn't give me any kind of error, : the browser just continues to process the request without ever timing out. : Any ideas? A couple. A situation as generic as, "never responds" gets generic advice: 1/ Check a thread dump of the JVM (search the archives if you don't know how), see whether something's deadlocked. Slim chance, but worth a shot. 2/ Check memory usage and GC, perhaps use a profiler. GC can make an app appear several shades of unresponsive. 3/ check the logs : 2] Tomcat manager does NOT delete my .war file on undeploy, I don't know about this one, so I'll leave it for someone who does. -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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat stops responding
I have allocated 256M to the JVM running Tomcat and it has never gone above 25M. I have received no out of memory exceptions. The machine in question has 2gig of RAM. -Original Message- From: Nandish Rudra [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 8:45 AM To: 'Tomcat Users List' Subject: RE: Tomcat stops responding Check logs for outofmemory exception. If the log has no exceptions check your memory usage. NR -Original Message- From: Keith Bottner [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 9:41 AM To: [EMAIL PROTECTED] Subject: Tomcat stops responding After I deploy my application everything immediately works fine, no problems. Then after some time (haven't narrowed it down yet but it seems to be several hours) Tomcat stops responding to requests. During this time there are little to no requests of Tomcat. Does anybody know why this might be occurring? Thanks in advance, Keith Have you ever noticed that the word 'complaint' and 'compliant' are spelled almost the same except the transposition of a single letter. I wonder why that is? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat stops responding
Unfortunately my log output has not been consistent. I have fixed that problem and should get solid logs now. My application currently uses SingleSignOn with a JDBCRealm. Besides that I have no other Database connections. I didn't mention that before, but I wanted to put it out there in case there is something specific about SingleSignOn or JDBCRealms that might trigger someone's memory. Thanks! -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 8:55 AM To: Tomcat Users List Subject: RE: Tomcat stops responding Are there any errors in your logs? -Original Message- From: Keith Bottner [mailto:[EMAIL PROTECTED] Sent: 09 August 2004 14:41 To: [EMAIL PROTECTED] Subject: Tomcat stops responding After I deploy my application everything immediately works fine, no problems. Then after some time (haven't narrowed it down yet but it seems to be several hours) Tomcat stops responding to requests. During this time there are little to no requests of Tomcat. Does anybody know why this might be occurring? Thanks in advance, Keith Have you ever noticed that the word 'complaint' and 'compliant' are spelled almost the same except the transposition of a single letter. I wonder why that is? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 5.0 , Build windows 2000 professional issues / workarounds
Team May be this can save some time for fellow tomcats!!!I ran into two issues when building . JAVA 1.4.1_02 1)The ant build failed due to missing ant-launcher.jar resolution/work around I was using ant 1.5 3-1 and it does not have ant-launcher.jar . I downloaded ant 1.6.2 binaries and set the ANT_HOME to 1.6.2 directory 2)Build failed with Exception Initialization error caues by target "build-webapps-precompile" in the tomcat5 build.xml. resolution/work around I commented the following line I was able to build successfully after that Any one run into these issues ? Any insights into why build-webaps-precompile fails [JSPC issues???] Regards __ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat manager app stops responding
On Mon, Aug 09, 2004 at 08:52:26AM -0500, Keith Bottner wrote: : BTW, any ideas on how to get a thread dump of the JVM on Linux? Yes, but the archives are feeling lonley. ;) Search there instead. : I am definitely not out of memory but I will modify CATLINA_OPTS to dump the : GC statistics. Out of *host* memory or out of *memory allocated to the JVM*? Big difference. -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: database information
On Mon, Aug 09, 2004 at 07:11:24PM -0400, Jignesh Patel wrote: : I want to inform to my application that database server is down so in : turn display appropriate error page to users. As well as all connections : should get closed in the pool. You're overthinking this. =) When the database is down (or otherwise unavailable) attempts to use DB-related objects (Connection, Statement, ResultSet, etc) will yield SQLExceptions. In turn, that exception (or even better, an app-specific exception that shields code up the chain from datasource-specific exceptions) will get passed back to the presentation layer, at which point you can serve an appropriate error page. For example, assuming a simple Page Controller setup for some use case: your code will do some processing and dispatch to an appropriate view. If the code is successful, dispatch to the "success" page. If you catch a data-related exception, dispatch to the "database error" page. This is why I said before, there's no need to tell the app that the DB is down: it will know. ;) There are certainly other (and more complicated) ways to handle this, which will all do pretty much the same as what I've outlined above. It sounds like you're more familiar with stateful/fat clients that maintain a constant connection to the central server, and that you can send them a message when the DB is down. HTTP doesn't offer such server-push functionality, just client-pull. -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: Tomcat manager app stops responding
Issue a kill -3 to the java process will dump all the threads. Ta Matt -Original Message- From: Keith Bottner [mailto:[EMAIL PROTECTED] Sent: 09 August 2004 14:52 To: 'Tomcat Users List' Subject: RE: Tomcat manager app stops responding My log files were being deleted by the deployment process so I was getting nothing from them, I fixed that problem and will watch the logs today and see if they show anything when it occurs. BTW, any ideas on how to get a thread dump of the JVM on Linux? I am definitely not out of memory but I will modify CATLINA_OPTS to dump the GC statistics. Please check back tomorrow after I have a day of logs. Thanks, Keith -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 8:34 AM To: Tomcat Users List Subject: Re: Tomcat manager app stops responding On Mon, Aug 09, 2004 at 04:52:18AM -0500, Keith Bottner wrote: : 1] After my web application has been running for some time then access to : /domain/manager/html never responds. It doesn't give me any kind of error, : the browser just continues to process the request without ever timing out. : Any ideas? A couple. A situation as generic as, "never responds" gets generic advice: 1/ Check a thread dump of the JVM (search the archives if you don't know how), see whether something's deadlocked. Slim chance, but worth a shot. 2/ Check memory usage and GC, perhaps use a profiler. GC can make an app appear several shades of unresponsive. 3/ check the logs : 2] Tomcat manager does NOT delete my .war file on undeploy, I don't know about this one, so I'll leave it for someone who does. -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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat stops responding
Are there any errors in your logs? -Original Message- From: Keith Bottner [mailto:[EMAIL PROTECTED] Sent: 09 August 2004 14:41 To: [EMAIL PROTECTED] Subject: Tomcat stops responding After I deploy my application everything immediately works fine, no problems. Then after some time (haven't narrowed it down yet but it seems to be several hours) Tomcat stops responding to requests. During this time there are little to no requests of Tomcat. Does anybody know why this might be occurring? Thanks in advance, Keith Have you ever noticed that the word 'complaint' and 'compliant' are spelled almost the same except the transposition of a single letter. I wonder why that is? Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat manager app stops responding
My log files were being deleted by the deployment process so I was getting nothing from them, I fixed that problem and will watch the logs today and see if they show anything when it occurs. BTW, any ideas on how to get a thread dump of the JVM on Linux? I am definitely not out of memory but I will modify CATLINA_OPTS to dump the GC statistics. Please check back tomorrow after I have a day of logs. Thanks, Keith -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 8:34 AM To: Tomcat Users List Subject: Re: Tomcat manager app stops responding On Mon, Aug 09, 2004 at 04:52:18AM -0500, Keith Bottner wrote: : 1] After my web application has been running for some time then access to : /domain/manager/html never responds. It doesn't give me any kind of error, : the browser just continues to process the request without ever timing out. : Any ideas? A couple. A situation as generic as, "never responds" gets generic advice: 1/ Check a thread dump of the JVM (search the archives if you don't know how), see whether something's deadlocked. Slim chance, but worth a shot. 2/ Check memory usage and GC, perhaps use a profiler. GC can make an app appear several shades of unresponsive. 3/ check the logs : 2] Tomcat manager does NOT delete my .war file on undeploy, I don't know about this one, so I'll leave it for someone who does. -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]
RE: Tomcat stops responding
Check logs for outofmemory exception. If the log has no exceptions check your memory usage. NR -Original Message- From: Keith Bottner [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 9:41 AM To: [EMAIL PROTECTED] Subject: Tomcat stops responding After I deploy my application everything immediately works fine, no problems. Then after some time (haven't narrowed it down yet but it seems to be several hours) Tomcat stops responding to requests. During this time there are little to no requests of Tomcat. Does anybody know why this might be occurring? Thanks in advance, Keith Have you ever noticed that the word 'complaint' and 'compliant' are spelled almost the same except the transposition of a single letter. I wonder why that is? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie - JDBC problem "Name is not bound in this context"
On Mon, Aug 09, 2004 at 09:29:51AM -0400, ohaya wrote: : > BUT .. in my Tomcat 5.0.27 .. I only see three .xml files in above : > location .. : > : > admin.xml : > balancer.xml : > manager.xml : > : > no other .xml files (context.xml files) show up such as If there is no context.xml, as with the examples, then Tomcat won't create (copy) the file to {tomcat}/conf/{...}. Take note: if you are using a WAR file and make changes to the internal context.xml file, delete the one under {tomcat}/conf/{...} before you bounce the process. At least for now, Tomcat doesn't check a whether a WAR file's context.xml is newer than its copy under the conf dir. -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]
Intercepting RMI over IIOP calls
Hi, I wish to intercept RMI over IIOP calls made from Tomcat and add some information (in the form of ServiceContext) to them. What is the best way to go about doing it. Does Tomcat support the CORBA standard org.omg.PortableInterceptor? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat stops responding
After I deploy my application everything immediately works fine, no problems. Then after some time (haven't narrowed it down yet but it seems to be several hours) Tomcat stops responding to requests. During this time there are little to no requests of Tomcat. Does anybody know why this might be occurring? Thanks in advance, Keith Have you ever noticed that the word 'complaint' and 'compliant' are spelled almost the same except the transposition of a single letter. I wonder why that is?
Re: database information
QM, I want to inform to my application that database server is down so in turn display appropriate error page to users. As well as all connections should get closed in the pool. And when database gets restart application again build connection pool. -Jignesh On Mon, 2004-08-09 at 09:30, QM wrote: > On Mon, Aug 09, 2004 at 06:56:44PM -0400, Jignesh Patel wrote: > : Thanks QM for response. > > Not a problem. > > > : Can I get any reading stuff on this topic. > : Please provide me the url which talks about it. > > I'm not sure I understand. I thought you'd answer my questions (e-mail > included below) such that I could point you in the right direction. > > -QM > > > : On Thu, 2004-08-05 at 09:20, QM wrote: > : > On Thu, Aug 05, 2004 at 11:54:58AM -0400, Jignesh Patel wrote: > : > : I want to inform my tomcat server that the database server is shutting > : > : down or restarting. > : > : > : > > : > Please define the term "inform": I'm sure your app will notice the > : > database is down, when it tries to fetch data and gets a "connection > : > refused" message. ;) > : > > : > > : > : Can JDBC Realm will do the job? > : > > : > I'm not sure what a Realm has to do with database access, except that > : > this particular Realm impl uses one as its backend. > : > > : > What, specifically, is your goal here? > : > > : > Perhaps you're trying to send some app-level ping to the database to > : > ensure it's up before you attempt to fetch data? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat manager app stops responding
On Mon, Aug 09, 2004 at 04:52:18AM -0500, Keith Bottner wrote: : 1] After my web application has been running for some time then access to : /domain/manager/html never responds. It doesn't give me any kind of error, : the browser just continues to process the request without ever timing out. : Any ideas? A couple. A situation as generic as, "never responds" gets generic advice: 1/ Check a thread dump of the JVM (search the archives if you don't know how), see whether something's deadlocked. Slim chance, but worth a shot. 2/ Check memory usage and GC, perhaps use a profiler. GC can make an app appear several shades of unresponsive. 3/ check the logs : 2] Tomcat manager does NOT delete my .war file on undeploy, I don't know about this one, so I'll leave it for someone who does. -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: database information
On Mon, Aug 09, 2004 at 06:56:44PM -0400, Jignesh Patel wrote: : Thanks QM for response. Not a problem. : Can I get any reading stuff on this topic. : Please provide me the url which talks about it. I'm not sure I understand. I thought you'd answer my questions (e-mail included below) such that I could point you in the right direction. -QM : On Thu, 2004-08-05 at 09:20, QM wrote: : > On Thu, Aug 05, 2004 at 11:54:58AM -0400, Jignesh Patel wrote: : > : I want to inform my tomcat server that the database server is shutting : > : down or restarting. : > : : > : > Please define the term "inform": I'm sure your app will notice the : > database is down, when it tries to fetch data and gets a "connection : > refused" message. ;) : > : > : > : Can JDBC Realm will do the job? : > : > I'm not sure what a Realm has to do with database access, except that : > this particular Realm impl uses one as its backend. : > : > What, specifically, is your goal here? : > : > Perhaps you're trying to send some app-level ping to the database to : > ensure it's up before you attempt to fetch data? -- 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: Newbie - JDBC problem "Name is not bound in this context"
d_1, Answers/comments below, interspersed... Jim d_l wrote: > > Can you clarify what version of Tomcat you are using? d_1, I'm running Tomcat 5.0.27... > It seems that there is a configuration change .. from Tomcat4 to Tomcat5 .. > > the context goes in to \conf\Catalina\localhost\.xml .. for each > webapp. > > Here is a reference I found in my own digging around .. > ___ > > http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html > > which states .. > Please note that for tomcat 5.x, unlike tomcat 4.x, it is NOT recommended to place > elements directly in the server.xml file. Instead, put them in the META- > INF/context.xml directory of your WAR file or the conf directory as described above. > > ___ > > BUT .. in my Tomcat 5.0.27 .. I only see three .xml files in above > location .. > > admin.xml > balancer.xml > manager.xml > > no other .xml files (context.xml files) show up such as > > jsp-examples.xml > servlets-examples.xml > > I don't understand why you have jsp-examples.xml and I don't see that file (only the > three above). No, I seem to have a .XML for each webapp. I didn't create them, they were just there. Here's a 'dir' (I did create the 'new.xml' is for a new test webapp that I'm working with): E:\Tomcat\jakarta-tomcat-5.0.27\conf\Catalina\localhost>dir Volume in drive E is DATA Volume Serial Number is CE83-0200 Directory of E:\Tomcat\jakarta-tomcat-5.0.27\conf\Catalina\localhost 08/05/2004 11:41p. 08/05/2004 11:41p.. 08/07/2004 01:09p 370 admin.xml 08/07/2004 01:09p 160 balancer.xml 08/07/2004 01:09p 339 manager.xml 08/07/2004 01:09p 176 webdav.xml 08/07/2004 01:09p 566 servlets-examples.xml 08/07/2004 08:53p 634 jsp-examples.xml 08/07/2004 01:09p 186 tomcat-docs.xml 08/08/2004 12:35a 239 ROOT.xml 08/08/2004 07:00p 243 new.xml 9 File(s) 2,913 bytes 2 Dir(s) 22,732,374,016 bytes free > > " so I added just the ResourceLink to jsp-examples.xml, > bounced Tomcat, and VOILA!!! It worked!! " > > Where is the default context information when there is no .xml? > There is no context entry in server.xml. > ... > > And I confirm that there is no webapps\examples\in my configuration .. > > replaced, it seems, by the two separate webapps above. > > ... > > I'm still puzzled. On my system, it looks like there IS a .xml, for each webapp, and in each case, the is in these .XML files. Thanks re. the 'examples' question. That was causing me to wonder if there was something wrong with my installation. As to your implied question above of "why do I have all the .XML files, whereas you only have 3?", is it possible that whoever built the Tomcat installation created it that way? FYI, I did my Tomcat installation from the Tomcat binaries for 5.0.27 (in a .zip file) that I found at http://www.apache.org, but I didn't look closely at what was where after I unzipped the distribution, so it may be that the .XML files were already in the distribution. So I don't know if they were there immediately after the unzip. All I know is that they're there now, and I didn't create them. It does seem that you have to manually create these .XML files, as with the new.xml, which I had to create manually, because when I started Tomcat up without the new.xml file, I saw some errors on startup. Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OFF TOPIC] J2EE/Tomcat Build Process
On Mon, Aug 09, 2004 at 09:30:05AM +0100, Allistair Crossley wrote: : When I do a build, I am thinking that all source must be checked in, then a Get Latest Version, then run an Ant script to compile and generate a WAR for staging and production deployment. -as in, the nightly integration build? So far, so good. At one client, we had the build system send out a nastygram to the dev team if the nightly build failed. Sometimes the e-mails were followed by a morning visit to the offender's desk. That helped enforce the idea to only check in what worked. ;) : - should each developer have a locally installed TC rather than server based? You may as well, if you don't have a powerful enough shared dev server. The upside to the shared environment is that it's easier to catch "developer drift," when people start coloring outside the lines: several people notice sudden spikes/drops in system resources and can find the offender. : I would be very interested in others' development/deploy processes with mult-developer Tomcat environments to cross-check my ideas. I'll add a simple +1 to others' messages: you're on the right track. Put another way: what you're doing is pretty much standard practice in (well-run ;) multi-dev shops, so if it's wrong, you're in good company. -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: database information
Thanks QM for response. Can I get any reading stuff on this topic. Please provide me the url which talks about it. -Jignesh On Thu, 2004-08-05 at 09:20, QM wrote: > On Thu, Aug 05, 2004 at 11:54:58AM -0400, Jignesh Patel wrote: > : I want to inform my tomcat server that the database server is shutting > : down or restarting. > : > > Please define the term "inform": I'm sure your app will notice the > database is down, when it tries to fetch data and gets a "connection > refused" message. ;) > > > : Can JDBC Realm will do the job? > > I'm not sure what a Realm has to do with database access, except that > this particular Realm impl uses one as its backend. > > What, specifically, is your goal here? > > Perhaps you're trying to send some app-level ping to the database to > ensure it's up before you attempt to fetch data? > > -QM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hanging after 8 sendRedirect()s
Hi, You should try a simple app from scratch, with 8 servlets that just do redirects and a bit of logging. Then if it fails you can upload the WAR and we can reproduce your issue easily. Yoav Shapira Millennium Research Informatics >-Original Message- >From: J Ross Nicoll [mailto:[EMAIL PROTECTED] >Sent: Monday, August 09, 2004 9:11 AM >To: [EMAIL PROTECTED] >Subject: Re: Hanging after 8 sendRedirect()s > >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA1 > >I've been doing tests under Firefox and Safari, and just redid the tests >with Lynx. Still hangs after 8 sendRedirect()s. Probably not browser >based then... > >~From the logs: > >138.251.206.76 - - [06/Aug/2004:19:12:06 +] "GET >/tags2/tasklist/EditTask.do?instance=The%20Case&task=1090496025 >HTTP/1.0" 200 11844 >138.251.206.76 - - [06/Aug/2004:19:12:08 +] "GET >/tags2/tasklist/DeleteFile.do?instance=The%20Case&task=1090496025&file= site >_map.htm >HTTP/1.0" 302 - >138.251.206.76 - - [06/Aug/2004:19:12:10 +] "GET >/tags2/tasklist/EditTask.do?instance=The%20Case&task=1090496025 >HTTP/1.0" 200 11844 >138.251.206.76 - - [06/Aug/2004:19:12:13 +] "GET >/tags2/tasklist/DeleteFile.do?instance=The%20Case&task=1090496025&file= site >_map.htm >HTTP/1.0" 302 - >138.251.206.76 - - [06/Aug/2004:19:12:15 +] "GET >/tags2/tasklist/EditTask.do?instance=The%20Case&task=1090496025 >HTTP/1.0" 200 11844 >138.251.206.76 - - [06/Aug/2004:19:12:17 +] "GET >/tags2/tasklist/DeleteFile.do?instance=The%20Case&task=1090496025&file= site >_map.htm >HTTP/1.0" 302 - > >The "DeleteFile.do" servlet is the one that forwards the user, and has >had most of its code removed so it doesn't actually write anything to disk. > >Does anyone have some example sendRedirect() code I can look at? If I >can reproduce this with someone else's code, maybe it's the platform, >otherwise maybe there's something subtle I'm missing... > >Shapira, Yoav wrote: >| Hi, >| There might be some browser checks for this sort of stuff. I remember >| reading about a virus that repeatedly redirected a hidden frame to its >| own URL for reading session data (cookies), and subsequently Microsoft >| and other vendors putting safeguards in their browsers against this sort >| of behavior. But then again, this paragraph is based upon dull >| recollections of events that are at least four years old and may just be >| in my imagination, given that it's Friday afternoon after a long week. >| >| Do the first few redirects work OK? Does the AccessLogValve show >| anything interesting for the 8th and subsequent redirects? >| >| Yoav Shapira >| Millennium Research Informatics >| >| >| >|>-Original Message- >|>From: J Ross Nicoll [mailto:[EMAIL PROTECTED] >|>Sent: Friday, August 06, 2004 12:16 PM >|>To: Tomcat Users List >|>Subject: Hanging after 8 sendRedirect()s >|> >| I've been going nuts trying to diagnose two applications I'm working >| >|> on, >| >| which seem to crash if a user opens 8 (maybe 9) servlets that use >| sendRedirect(), in a row. >| >| These do not return anything to the user (to the extent of not >| retrieving a PrintWriter or OutputStream). This happens both through >| Apache (with mod_jk), and just by connectiong normally. >| >| This is under Tomcat 5.0.27 with J2SDK 1.4.2, running on Linux 2.4.22 >| (although it's been demonstrated on other configurations). >| >| So, imagine there's page A, which links to page B. Page B redirects the >| user back to page A. The user clicks on the link to B, and ends up back >| at A. They repeat this a further 7 times, at which point the returned >| page for A isn't completely received. Any further attempts to >| communicate with the servlet appear to be received okay, but no >| >|> response >| >| gets back to the user. >| >| Any ideas? > > >-BEGIN PGP SIGNATURE- >Version: GnuPG v1.2.4 (Darwin) >Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > >iD8DBQFBF3ffEYciZnlEX74RAg7NAJwPW7k3AxGvtOylJfT2gJ0+KPw6OgCZAYsx >mzQsy8rrGmUMN7EaZBXCdb8= >=JQnw >-END PGP SIGNATURE- > >- >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]
Newbie - J2k uri mapping to subfolders via Ajp13?
Hi, I'm running j2k (isapi_redirector2.dll) under IIS 5.1 to connect via Ajp13 to my server. My "workers2.properties" is like this: [shm] file=${serverRoot}/shm.file size=1048576 # socket channel for myapp on myhost. [channel.socket:myhost:8081] port=8081 host=myhost # define the worker [ajp13:myhost:8081] channel=channel.socket:myhost:8081 # Uri mapping [uri:/myapp/*] worker=ajp13:myhost:8081 This works fine. Is it possible to change the configuration in "workers2.properties" so that the url http://myhost/myapp points to a subfolder like: http://myhost:8081/subfolder? TIA Heinrich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hanging after 8 sendRedirect()s
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've been doing tests under Firefox and Safari, and just redid the tests with Lynx. Still hangs after 8 sendRedirect()s. Probably not browser based then... ~From the logs: 138.251.206.76 - - [06/Aug/2004:19:12:06 +] "GET /tags2/tasklist/EditTask.do?instance=The%20Case&task=1090496025 HTTP/1.0" 200 11844 138.251.206.76 - - [06/Aug/2004:19:12:08 +] "GET /tags2/tasklist/DeleteFile.do?instance=The%20Case&task=1090496025&file=site_map.htm HTTP/1.0" 302 - 138.251.206.76 - - [06/Aug/2004:19:12:10 +] "GET /tags2/tasklist/EditTask.do?instance=The%20Case&task=1090496025 HTTP/1.0" 200 11844 138.251.206.76 - - [06/Aug/2004:19:12:13 +] "GET /tags2/tasklist/DeleteFile.do?instance=The%20Case&task=1090496025&file=site_map.htm HTTP/1.0" 302 - 138.251.206.76 - - [06/Aug/2004:19:12:15 +] "GET /tags2/tasklist/EditTask.do?instance=The%20Case&task=1090496025 HTTP/1.0" 200 11844 138.251.206.76 - - [06/Aug/2004:19:12:17 +] "GET /tags2/tasklist/DeleteFile.do?instance=The%20Case&task=1090496025&file=site_map.htm HTTP/1.0" 302 - The "DeleteFile.do" servlet is the one that forwards the user, and has had most of its code removed so it doesn't actually write anything to disk. Does anyone have some example sendRedirect() code I can look at? If I can reproduce this with someone else's code, maybe it's the platform, otherwise maybe there's something subtle I'm missing... Shapira, Yoav wrote: | Hi, | There might be some browser checks for this sort of stuff. I remember | reading about a virus that repeatedly redirected a hidden frame to its | own URL for reading session data (cookies), and subsequently Microsoft | and other vendors putting safeguards in their browsers against this sort | of behavior. But then again, this paragraph is based upon dull | recollections of events that are at least four years old and may just be | in my imagination, given that it's Friday afternoon after a long week. | | Do the first few redirects work OK? Does the AccessLogValve show | anything interesting for the 8th and subsequent redirects? | | Yoav Shapira | Millennium Research Informatics | | | |>-Original Message- |>From: J Ross Nicoll [mailto:[EMAIL PROTECTED] |>Sent: Friday, August 06, 2004 12:16 PM |>To: Tomcat Users List |>Subject: Hanging after 8 sendRedirect()s |> | I've been going nuts trying to diagnose two applications I'm working | |> on, | | which seem to crash if a user opens 8 (maybe 9) servlets that use | sendRedirect(), in a row. | | These do not return anything to the user (to the extent of not | retrieving a PrintWriter or OutputStream). This happens both through | Apache (with mod_jk), and just by connectiong normally. | | This is under Tomcat 5.0.27 with J2SDK 1.4.2, running on Linux 2.4.22 | (although it's been demonstrated on other configurations). | | So, imagine there's page A, which links to page B. Page B redirects the | user back to page A. The user clicks on the link to B, and ends up back | at A. They repeat this a further 7 times, at which point the returned | page for A isn't completely received. Any further attempts to | communicate with the servlet appear to be received okay, but no | |> response | | gets back to the user. | | Any ideas? -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBF3ffEYciZnlEX74RAg7NAJwPW7k3AxGvtOylJfT2gJ0+KPw6OgCZAYsx mzQsy8rrGmUMN7EaZBXCdb8= =JQnw -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Out of memory exception in Tomcat 4.0.4
Hola, >- Root Cause - >java.lang.OutOfMemoryError >Is getting more memory for this machine is my only option? >Is playing around with -X?? options of Java will help me, Solaris is >supposed >to do good job of handeling virtual memory. Or is it aleak some where in > >Java/Tomcat. > >I did my home work and searched the archive and found similar issues but >for Windows, so it have difference solution/reasons. If you did your homework, then you'd know the solution to OutOfMemoryErrors is specific to your web application and your server configuration. You may have a leak, or you may not, and no one but you can tell for sure: get a profiler and use it. You may obtain better performance by tuning the JVM's garbage collection (using the variety of applicable -X runtime options), and you may not, especially if you have a serious leak. And adding memory can't hurt that much, but may not be required: again you must test it yourself. There are no shortcuts for OOMEs that lead to sustainable long-term solutions. Of course, right after I post this someone will probably say blindly "just set -Xmx1536m and you'll be fine" ;) 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]
form-based login username and password encoding issue
hi all; in my application, i let my users register to my site (with username, password , etc.. ), when they do i programatically take their username and password and move it to the authentication tables of the datasource realm so they can authenticate. i am using form-basd login. problem is that when a user enters a username ans password characters that are not western europian, the authentication process fails. is this a constraint of the fact that the user and password are sent as parameters in the URL? (j_user, ...). are the parameters in the URL not encoded as UTF-8? can i control this? thanks in advance. _
RE: Newbie - JDBC problem "Name is not bound in this context"
Hola, >It seems that there is a configuration change .. from Tomcat4 to Tomcat5 .. NSS ;) There are definitely multiple configuration changes between the two, it's a major release after all. >And I confirm that there is no webapps\examples\in my configuration .. > >replaced, it seems, by the two separate webapps above. Yup, in the docs when we refer to examples it's generally to both JSP and Servlet examples, since there's no difference between the two from the Tomcat perspective. 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: connection pool problems, etc.
Hi, Note that Tomcat 5.0.27 already ships with DBCP 1.2.1. As for database drivers, your advice is good in general (and has nothing specifically to do with Tomcat or DBCP) and people should follow it. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Steve Summit [mailto:[EMAIL PROTECTED] >Sent: Friday, August 06, 2004 8:20 PM >To: [EMAIL PROTECTED] >Subject: connection pool problems, etc. > >It looks like lots of people are having various kinds of problems >involving pools, and threads, and connections (perhaps to databases), >and starvation, and hanging, and such. (In fact, it was to ask >about just such a problem that I joined this list.) I don't have >all the information yet, but I've discovered that my problems >were probably due to -- or at least seem to have been fixed by >updating -- a couple of .jar files: > > * The Jakarta common classes commons-dbcp.jar and commons-pool.jar > > * The Oracle JDBC driver classes12.jar or ojdbc14.jar > >As I understand it, both Jakarta and Oracle have recently had >to fix bugs in these classes which involved pools, and threads, >and connections, and starvation, and hanging, and such. > >The new versions of the Jakarta classes are >commons-dbcp-1.2.1.jar and commons-pool-1.2.jar, and I >downloaded them from http://jakarta.apache.org/commons/. > >The new versions of the Oracle JDBC drivers come with newer >versions of Oracle, or can (so my dba tells me) be downloaded >from Oracle's site. > >(Apologies if this is old news to everyone.) > > Steve Summit > [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: Bizzare bug with my class and sharing values between different instances
Hi, In the future, please mark off-topic (i.e. not having to do with Tomcat, which is the case with your general Java question) subjects as such by prepending [OFF-TOPIC] to the subject line. Thanks, Yoav Shapira Millennium Research Informatics >-Original Message- >From: Isen,Ciji [mailto:[EMAIL PROTECTED] >Sent: Friday, August 06, 2004 5:33 PM >To: Tomcat Users List >Subject: Re: Bizzare bug with my class and sharing values between different >instances > >I dont think a static member is what you wanted. What you seem to want >to is to store a data object. >That be the case there is no point making them static. remove the static >key word in. > > private static int iNum; > private static String sString; >and try. > >Gig 'em, >Ciji Isen > >ps: If you where to use an IDE like Eclipse or so I think it would have >suggested this as you write it. > >Thomas Joseph Olaes wrote: > >>Hello, list! >> >>I am currently busting my brain over this problem... I have the following >class: >> >>package net.olaes; >> >>import java.lang.String; >> >>public class NumAndString { >> private static int iNum; >> private static String sString; >> >> public NumAndString(int iNum, String sString){ >>this.iNum = iNum; >>this.sString = sString; >> } >> >> public int getNum(){ >>return this.iNum; >> } >> >> public String getString(){ >>return this.sString; >> } >>} >> >>When I try to do the following in my JSP: >> >>Vector v = new Vector(); >>v.add(new NumAndString(1, "a")); >>v.add(new NumAndString(2, "b")); >>v.add(new NumAndString(3, "c")); >> >>Iterator i = v.iterator(); >>while(i.hasNext()){ >> NumAndString nasThisOne = (NumAndString) i.next(); >> out.println(nasThisOne.getNum()); >> out.println(nasThisOne.getString()); >>} >> >>I get: >> >>3 >>c >>3 >>c >>3 >>c >> >>I don't understand what I'm doing wrong, my gut says to check my class >>definition, but I don't even know how to google up this problem >>because I've never seen it before. >> >>Anywho, I'll keep checking the net for my problem, but if anyone has a >>quickie solution to my class up above, please help. >> >>Thank you very much for your time and assistance in advance. >> >>-TJ >> >>- >>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: 404 page's characters are not displayed correctly.
Hi, Ahh, good, I didn't remember if I'd applied that patch to CVS HEAD or not. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Chris [mailto:[EMAIL PROTECTED] >Sent: Saturday, August 07, 2004 2:41 PM >To: Tomcat Users List >Subject: Re: 404 page's characters are not displayed correctly. > >I 'v downloaded the latest nightly build version , the problem >has been fixed :) >http://issues.apache.org/bugzilla/show_bug.cgi?id=28875 > >- Original Message - >From: "Chris" <[EMAIL PROTECTED]> >To: "Tomcat Users List" <[EMAIL PROTECTED]> >Sent: Sunday, August 08, 2004 12:36 AM >Subject: 404 page's characters are not displayed correctly. > > >> Howdy, >> >> I am using TC 5.0.27 under win2k pro Japanese version, When >> my IE request a web page that does not exist, the 404 page's >> characters are jumbled. I 'v seeking solutions for a long time and >> finally turn to this mailing list. Would anyone give me a hint? >> >> BTW, TC 4.1.x does not have the problem. >> TIA >> >> following is the 404 page: >> --- >> >> HTTP? 404 - /webmod/none.jsp >> >> - >- >-- >> >> >> type ? >> >> ? /webmod/none.jsp >> >> ?? The requested resource (/webmod/none.jsp) is not available. >> >> >> - >> 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: [OFF TOPIC] J2EE/Tomcat Build Process
Hi, >Then, I am thinking, each developer must only ever checkin stable >compilable source, so that when other devs Get Latest Version from the root >of the source tree, it will still compile. Yes, that's a generally accepted practice: developers shouldn't check in something that doesn't compile. >When I do a build, I am thinking that all source must be checked in, then a >Get Latest Version, then run an Ant script to compile and generate a WAR >for staging and production deployment. Yes, again a generally accepted practice: announce a build and/or lockdown time, by which everything must be checked in. >Finally, I have just this second had a call from IT saying the 3 instances >on our dev server are brining virtual memory to its knees - which begs >another question - should each developer have a locally installed TC rather >than server based? Yes, locally if you don't have the shared resources to do it on your dev server. Your server resources are better spent on integration and load testing (and of course serving the production site). Note that nothing in your question is specific to Tomcat or even J2EE. These principles are applicable (and these issues arise) for any multi-developer project, no matter the language or platform. 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]
serving pdf with CLIENT-CERT authentication
Hi, I'm running an application with SSL-client certificate authentication. It works fine, except one servlet that serves a PDF document. Yet that servlet worked fine on a Tomcat 4.x. Now, on a Tomcat 5.0.25, I get the following problem : when my Internet Explorer 6 requests for the servlet, I get a popup ("open", "save",...), which I didn't get with my Tomcat 4.x, and when I try to "open" or "save" the PDF, Internet Explorer complains about the server unavailability... Enabling SSL trace, I don't see any error and I can see a few "WRITE: SSLv3 Application Data" correspunding with the PDF served. That's all the more surprising since it works fine on Tomcat 5.0.25 if I use SSL with server authentication only and no security constraint in my web app. Any idea ?
Re: [OFF TOPIC] J2EE/Tomcat Build Process
I don't understand if all the developers is not having TC installed, how they will check the code is logically working before integrating with main code. In my 6 years experience I haven't thought of the situation that more then one developer is depending on only one server. -Jignesh On Mon, 2004-08-09 at 04:30, Allistair Crossley wrote: > Hi All, > > I am currently trying to streamline our team's build process here using Tomcat as > our servlet container. > > For a while the way I had it setup was that we had 1 instance of TC running on a dev > server and 1 instance on production. Each developer would checkout only the code > they will work on from VSS. They would not have read-only latest version copies of > the other source on their disks. They would then use an Ant build script to compile > their checked out classes directly to TC's classes, and a separate Ant target for > copying JSPs and so on to the webapp folder. > > This method as far as I was concerned got around the code overwrite problem - where > if both developers had a version of all source using a Get Latest Version, each time > they compile they would overwrite the same instance compiled classes. > > Recently, I have installed a TC per developer on the server. My idea is that we will > use the Eclipse VSS plugin and WILL all perform Get Latest Version. However, because > each dev has their own dev instance, they will not overwrite any changes by other > developers on source they have not got checked out. > > Then, I am thinking, each developer must only ever checkin stable compilable source, > so that when other devs Get Latest Version from the root of the source tree, it will > still compile. > > When I do a build, I am thinking that all source must be checked in, then a Get > Latest Version, then run an Ant script to compile and generate a WAR for staging and > production deployment. > > Finally, I have just this second had a call from IT saying the 3 instances on our > dev server are brining virtual memory to its knees - which begs another question - > should each developer have a locally installed TC rather than server based? > > I would be very interested in others' development/deploy processes with > mult-developer Tomcat environments to cross-check my ideas. > > Kindest Regards, Allistair. > > > > > > > --- > QAS Ltd. > Developers of QuickAddress Software > http://www.qas.com";>www.qas.com > Registered in England: No 2582055 > Registered in Australia: No 082 851 474 > --- > > > > - > 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: Newbie - JDBC problem "Name is not bound in this context"
Can you clarify what version of Tomcat you are using? It seems that there is a configuration change .. from Tomcat4 to Tomcat5 .. the context goes in to \conf\Catalina\localhost\.xml .. for each webapp. Here is a reference I found in my own digging around .. ___ http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html which states .. Please note that for tomcat 5.x, unlike tomcat 4.x, it is NOT recommended to place elements directly in the server.xml file. Instead, put them in the META- INF/context.xml directory of your WAR file or the conf directory as described above. ___ BUT .. in my Tomcat 5.0.27 .. I only see three .xml files in above location .. admin.xml balancer.xml manager.xml no other .xml files (context.xml files) show up such as jsp-examples.xml servlets-examples.xml I don't understand why you have jsp-examples.xml and I don't see that file (only the three above). " so I added just the ResourceLink to jsp-examples.xml, bounced Tomcat, and VOILA!!! It worked!! " Where is the default context information when there is no .xml? There is no context entry in server.xml. ... And I confirm that there is no webapps\examples\in my configuration .. replaced, it seems, by the two separate webapps above. ... I'm still puzzled. _ On 7 Aug 2004 at 21:47, ohaya ohaya-at-cox.net |Tomcat User List| wrote: > > Hi Arthur, > > Guess what? I think that I've found where the Contexts ended up!! > > I was digging around the Tomcat directories, and I found that at [TOMCAT > HOME]\conf\Catalina\localhost, there was a bunch of .XML files, one > named after each of the webapps, e.g., jsp-examples.xml. And, it looks > like each of these are the Context for the respective webapps. > > My test JSP is in jsp-examples, so I added just the ResourceLink to > jsp-examples.xml, bounced Tomcat, and VOILA!!! It worked!! > > > BTW, I am curious about something. It seems that my installation seems > a bit non-standard. All the docs that I've seen talk about 'examples', > but in my case, I don't have an 'examples' directory or webapp, just a > 'jsp-examples'. Do you, or does anyone else know if this is something > that has changed in the distribution? > > Thanks for all of your help!! > > Jim
Tomcat manager app stops responding
I am having two problems with the Tomcat manager: 1] After my web application has been running for some time then access to /domain/manager/html never responds. It doesn't give me any kind of error, the browser just continues to process the request without ever timing out. Any ideas? 2] Tomcat manager does NOT delete my .war file on undeploy, so I have to then access the server in a different manager, stop it, delete the file manually, start it, then upload the new .war file and deploy it. Which sometimes takes several times to deploy properly if I am referencing the root context but not any other context. Any ideas? Thanks in advance, Keith Have you ever noticed that the word 'complaint' and 'compliant' are spelled almost the same except the transposition of a single letter. I wonder why that is?
Out of memory exception in Tomcat 4.0.4
Hi geeks, I get this error on daily basis now for 10 days, my machine is loaded a little bit (More info below). Exception: 2004-08-08 19:40:21 StandardWrapperValve[CAL]: Servlet.service() for servlet CAL threw exception javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja va:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234 7) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa lve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j ava:1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java: 1125) at java.lang.Thread.run(Thread.java:534) - Root Cause - java.lang.OutOfMemoryError Output of vmstat: procs memorypagedisk faults cpu r b w swap free re mf pi po fr de sr s0 s1 s1 -- in sy cs us sy id 0 0 23 715224 62376 1 4 14 5 5 0 0 3 1 0 0 237 393 525 70 1 30 0 1 35 838112 8984 54 53 1080 64 64 0 0 89 0 0 0 1090 1964 1387 36 15 50 0 1 35 838112 8832 31 27 904 16 16 0 0 93 0 0 0 930 1739 1148 33 6 61 0 1 35 838112 8728 9 6 808 0 0 0 0 82 0 0 0 871 1605 1059 27 12 61 0 0 35 838112 8800 6 1 680 760 752 0 0 111 0 0 0 1188 1714 1374 27 8 65 0 0 35 838112 9296 35 33 400 0 0 0 0 154 0 0 0 1049 1340 1079 24 4 72 0 0 35 838112 9008 35 28 752 0 0 0 0 89 0 0 0 964 2422 1736 41 7 52 swap usage as per "swap -s" total: 457816k bytes allocated + 117392k reserved = 575208k used, 838128k available This is Netra t1 (UltraSPARC-IIi 440MHz) machine with, 512 Megabytes, running: SunOS nitro 5.8 Generic_108528-03 sun4u sparc SUNW,UltraSPARC-IIi-cEngine Tomcat version: Apache Tomcat/4.0.4 Command line option: /export/home/arabic/j2sdk1.4.2_04/bin/java -Djava.awt.headless=true \ -Xms32m -Xmx128m -Djava.awt.headless=true \ -Djava.endorsed.dirs=/opt/tomcat-vsky-test/bin:/opt/tomcat-vsky-test/com mon/lib:/\ export/home/arabic/xalan-j_2_6_0/bin/ \ -classpath /export/home/arabic/j2sdk1.4.2_04/lib/tools.jar:\ /opt/tomcat/common/lib/classes12.jar:/opt/tomcat/common/lib/servlet.jar: \ /opt/tomcat-vsky-test/bin/bootstrap.jar -Dcatalina.base=/opt/tomcat-vsky-test \ -Dcatalina.home=/opt/tomcat-vsky-test -Djava.io.tmpdir=/opt/tomcat-vsky-test/temp \ org.apache.catalina.startup.Bootstrap start Is getting more memory for this machine is my only option? Is playing around with -X?? options of Java will help me, Solaris is supposed to do good job of handeling virtual memory. Or is it aleak some where in Java/Tomcat. I did my home work and searched the archive and found similar issues but for Windows, so it have difference solution/re
RE: Problems with file encoding
You still can. If you look in catalina.bat ... %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% So, just make sure you set %CATALINA_OPTS% e.g SET CATALINA_OPTS=-Dfile.encoding=ISO8859-1 If you are using a Windows Service you need to modify service.bat Allistair. > -Original Message- > From: Francisco José Arnau Vives [mailto:[EMAIL PROTECTED] > Sent: 09 August 2004 09:10 > To: [EMAIL PROTECTED] > Subject: Problems with file encoding > > > One month ago, I have installed tomcat.5.0.25 over my > production server. In > older versions of tomcat I included the lines > ''CATALINA_OPTS="-Dfile.encoding=ISO8859-1" in my init script > of tomcat in > order to solve little problems in the encoding of files, but > now with this > version I have problems with the encoding of files and wheh I insert > caracters as (á.é,í...) in forms. can you help me with this matter? > > __ > __ > > Este mensaje se dirige exclusivamente a su destinatario y > puede contener > información privilegiada o CONFIDENCIAL. Si no es vd. el destinatario > indicado, queda notificado de que la utilización, divulgación > y/o copia > sin autorización está prohibida en virtud de la legislación vigente. > Si ha recibido este mensaje por error, le rogamos que nos lo comunique > inmediatamente por esta misma vía y proceda a su destrucción. > > This message is intended exclusively for its addressee and may contain > information that is CONFIDENTIAL and protected by > professional privilege. > If you are not the intended recipient you are hereby notified that any > dissemination, copy or disclosure of this communication is strictly > prohibited by law. If this message has been received in error, please > immediately notify us via e-mail and delete it. > __ > __ > > > --- QAS Ltd. Developers of QuickAddress Software http://www.qas.com";>www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OFF TOPIC] J2EE/Tomcat Build Process
Hi All, I am currently trying to streamline our team's build process here using Tomcat as our servlet container. For a while the way I had it setup was that we had 1 instance of TC running on a dev server and 1 instance on production. Each developer would checkout only the code they will work on from VSS. They would not have read-only latest version copies of the other source on their disks. They would then use an Ant build script to compile their checked out classes directly to TC's classes, and a separate Ant target for copying JSPs and so on to the webapp folder. This method as far as I was concerned got around the code overwrite problem - where if both developers had a version of all source using a Get Latest Version, each time they compile they would overwrite the same instance compiled classes. Recently, I have installed a TC per developer on the server. My idea is that we will use the Eclipse VSS plugin and WILL all perform Get Latest Version. However, because each dev has their own dev instance, they will not overwrite any changes by other developers on source they have not got checked out. Then, I am thinking, each developer must only ever checkin stable compilable source, so that when other devs Get Latest Version from the root of the source tree, it will still compile. When I do a build, I am thinking that all source must be checked in, then a Get Latest Version, then run an Ant script to compile and generate a WAR for staging and production deployment. Finally, I have just this second had a call from IT saying the 3 instances on our dev server are brining virtual memory to its knees - which begs another question - should each developer have a locally installed TC rather than server based? I would be very interested in others' development/deploy processes with mult-developer Tomcat environments to cross-check my ideas. Kindest Regards, Allistair. --- QAS Ltd. Developers of QuickAddress Software http://www.qas.com";>www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with file encoding
One month ago, I have installed tomcat.5.0.25 over my production server. In older versions of tomcat I included the lines ''CATALINA_OPTS="-Dfile.encoding=ISO8859-1" in my init script of tomcat in order to solve little problems in the encoding of files, but now with this version I have problems with the encoding of files and wheh I insert caracters as (á.é,í...) in forms. can you help me with this matter? Este mensaje se dirige exclusivamente a su destinatario y puede contener información privilegiada o CONFIDENCIAL. Si no es vd. el destinatario indicado, queda notificado de que la utilización, divulgación y/o copia sin autorización está prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción. This message is intended exclusively for its addressee and may contain information that is CONFIDENTIAL and protected by professional privilege. If you are not the intended recipient you are hereby notified that any dissemination, copy or disclosure of this communication is strictly prohibited by law. If this message has been received in error, please immediately notify us via e-mail and delete it.
Re: Wildcard subdomains
You can use news.gmane.org See http://www.gmane.org/ "Henrik Gammelmark" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > Thank you very much, I'll try that - by the way, does this user-list > have a newsgroup as well or is email-lists the only option? Thank you > > > Hi, > > > > You can map *.somedomain.com via ServerAlias in httpd (apache). > > Then you could use proxypass (reverse proxying) or urlrewrite. > > for example (from httpd.conf): > > > > > > ServerName www.domain.net > > ServerAlias *.domain.net > > ProxyPass / http://somehost.domain.net:8080/ > > ProxyPassReverse / http://somehost.domain.net:8080/ > > > > > > This would redirect any request into somehost.domain.net on port 8080. > > this way you need only one host in tomcat server.xml. it should have > > the name "somehost.domain.net" > > > > I don't think you can use acronyms where you specify host-aliases in > > server.xml. > > > > hope it helps > > -reynir > > > > > > Henrik Gammelmark wrote: > > > >> Is there any way I can catch all subdomains belonging to a > >> domain-name within one tag? > >> > >> *.domain2.com > >> > >> The above illustrates what I wish to do, but it seems tomcat handles > >> the asterisk literally instead of a wildcard. Using Tomcat 5 hooked > >> up to Apache2 using mod-jk2. > >> > >> Any help is appreciated. 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]