Re: Issue with tomcat 6 connector
Krish schrieb am 19.03.2011 um 17:31 (-0700): I am using tomcat 6.0.20. In the frontend i have sun one webserver 7 using nsapi_redirect-1.2.31 connector. My OS is windows server 2003 32bit. I am trying to create a connector using the document below. http://tomcat.apache.org/connectors-doc/webserver_howto/nes.html my tomcat is ssl enabled and my sun one webserver 7 is http. Unrelated, but why would you need SSL in Tomcat when you're fronting it with Sun One Webserver? here is the configuration in obj.conf. I can get the tomcat base html pages. But jsp is not working. Look at this mapping: NameTrans fn=assign-name from=/*.jsp/ name=jknsapi Are you sure it applies to all JSPs? I'd presume it applies only to JSPs directly beneatht the document root. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Solr on new Tomcat 7.0.11
Lewis John McGibbney schrieb am 16.03.2011 um 17:19 (+): org.xml.sax.SAXParseException: The processing instruction target matching [xX][mM][lL] is not allowed. Take a look at this doc: ?xml version=1.0? Urmel ?abc bla=99 blub=77? /Urmel ?def blubbel=irgendwas? The first line is the XML declaration. The third and fifth lines are processing instructions (PIs). The XML declaration looks just like a PI. But the identifer xml (in all cases) is reserved for the XML declaration. So the error message means you have a PI using a reserved identifier in your document. My configuration descriptor is as follows ?xml version=1.0 encoding=utf-8? Context docBase=/home/lewis/Downloads/wombra/wombra.war crossContext=true Environment name=solr/home type=java.lang.String value=/home/lewis/Downloads/wombra override=true/ /Context Either this isn't your document, or something mangles it on the way to the parser, or - least likely - your parser has a bug. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: localhost
ken dias schrieb am 06.03.2011 um 16:31 (-0500): I can ping localhost OK from the cmd line but cannot access it from my browser. i have xp and ie Anything running on port 80 at all? netstat -ano -p tcp | findstr :80 -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: IIS7/isapi/tomcat performance
Christopher Schultz schrieb am 01.03.2011 um 16:56 (-0500): I find *NIX smaller, cleaner, simpler, more scriptable and remotely administratable (is that a word? maybe administerable?) than Windows. The word is: administrable http://en.wiktionary.org/wiki/-abilis http://en.wiktionary.org/wiki/administrare Cheers, Michael - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: loading an xsl file in javascript
robert.jen...@surecomp.com schrieb am 23.02.2011 um 16:59 (+0200): xml.loadXML(xml.transformNode(xsl)); if transforming the xml using the xml already loaded.. so the source xml is from the target object Check out transformNodeToObject(clonedDom), that should be more efficient. Doesn't have anything to do with Tomcat, though. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: programming question
János Löbb schrieb am 24.02.2011 um 11:24 (-0500): On Feb 24, 2011, at 10:58 AM, David kerber wrote: On 2/24/2011 10:49 AM, János Löbb wrote: What is the very basic structure of a web application that is connected to a database through a connection pool, but would not require to restart itself or restart Tomcat when the database goes down - let say for maintenance ? Telling otherwise how to write a webapp that would survive a database recycling and would not require human interactions to make it work again. I've never had trouble having my app reconnect after restarting the database; the tomcat db connection classes handle that transparently, AFAIK. Well, I have here programmers who are writing web applications and those are stuck if I recycle the database. Therefore I have to do a 1 hour hokusz-pokusz, shutting down Tomcat, etc... all over the place, before I can recycle the database. So I just would like to know what would be the structure or skeleton of the simplest java web app that would not die if the database is pulled underneath and would reconnect like charm after the database is back again. Many or most database applications can't do business when the database is not available. All write operations will fail unless, for example, going to a message queue. All read operations will fail unless, for example, tapping into a cache, or another database. What's left to do for the app when it cannot offer its services to the user? Basically, display a temporarily out-of-service page. When I mention them that their programs should handle the situation resulting from the database bounce automagically and not the dba handling the web app or Tomcat shutdowns and restarts, they look at me like I came from Mars or Saturn :-) So, I just want to know how it is done in the real world :-) I don't know. Various procedures seem possible. * static maintenance downtime page * fallback app offering basic functionality reading from a cache * offering more advanced functionality, writing to a queue Questionable whether the complexities involved in the latter approaches will not far outweigh the benefit to the user. I don't think there is a trivial solution that does more than display a maintenance page. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: CLOSE_WAIT
Peter Crowther schrieb am 03.02.2011 um 11:47 (+): On 3 February 2011 11:35, Pid p...@pidster.com wrote: What factor caused so many people to hijack this thread? Using a mail client such as Gmail, which performs its own threading and doesn't respect or even show the thread ID. Or something Produced By Microsoft Exchange V6.5 (thread hijacker #1), or Yahoo Mail (TH2), or iPhone (TH3). It's not simply to blame on technology, I guess. :-) -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Adapter for Eclipse 3.5 Galileo?
VincentBlouin schrieb am 26.01.2011 um 09:20 (-0800): Hi, I had the same problem, then in Eclipse I went to help install new software choose eclipse web tool platform repository - http://download.eclipse.org/eclipse/updates/3.5 from the dropdown menu then I checked Project Provided Components and installed it. After that I saw the tomcat servers at the server runtime menu that is : ( window preferences server runtime environment Add) Thanks. That post of mine must have been sent some time ago, Indeed, July 15, 2009: Tomcat Adapter for Eclipse 3.5 Galileo? http://old.nabble.com/Tomcat-Adapter-for-Eclipse-3.5-Galileo--td24497869.html I've got it to work since then, apparently the day I posted by installing from the WTP site, not the release site. Installing more packages in Eclipse has been the solution for me a couple of times. Failed while installing Dynamic Web Module 2.5 http://www.eclipse.org/forums/index.php?t=msgth=152542 Michael - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Cannot get manager/html access
André Warnier schrieb am 26.01.2011 um 21:08 (+0100): I rather like these comment signs. They provide me with easy kudos […] Easy kudos, nice. I finally looked up the term to know the origin. To my surprise, it is Greek. I was convinced it was Japanese. http://en.wiktionary.org/wiki/kudos Sorry for this irrelevant contribution. Not expecting any kudos. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: mod_jk load balancing problem
Shoaib M. Chaudhary schrieb am 27.01.2011 um 09:08 (+0500): When I use mod_jk with the following code for one worker it works fine but when I try to connect with two tomcat servers that are not on the same machine on which I have apache. Interestingly when I use one worker as localhost it works fine again. There is no error but the page loads again and again. Isn't that due to some REFRESH directive in the HTML? Or some other Javascript? Or possibly multiple HTTP redirects? What's going on at the HTTP level? -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
mail.jar, activation.jar and classloading
What is special about mail.jar (and activation.jar) that requires putting them into the common.loader? Quote from the Tomcat docs: Unpackage the distribution(s) and place mail.jar (and activation.jar if required) into $CATALINA_HOME/lib so the JAR(s) is(are) available to Tomcat during the initialization of the mail Session Resource. http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html This question is spawned by a recent thread on the Ant mailing list, where the same question was raised in the context of classloading issues, but not answered. Mail task with mail.jar activation.jar out of lib folder http://ant.markmail.org/thread/ojjm7g5otejua33i Thanks. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: mod_jk load balancing problem
Shoaib M. Chaudhary schrieb am 26.01.2011 um 15:48 (+0500): I am trying to use mod_jk with tomcat 5.5.3x. When I use mode_jk with one worker it works fine Okay. but when I use loadbalancer with two different tomcats the server doesn't response No response at all? Or some error status? but always try to refresh the page. It's not clear to me what you're doing nor what's happening. What about providing a more precise description of your setup (like config) and observations? -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: mail.jar, activation.jar and classloading
Ronald Klop schrieb am 26.01.2011 um 12:08 (+0100): For the record: JAF (activation.jar) is already in Java 6 (and that sucks :-)). It might (I don't know). Mail.jar, however, isn't in Java 6 SE. And from the discussion on the Ant list it appeared that there was something special about this jar that requires special classloader treatment. Mail task with mail.jar activation.jar out of lib folder http://ant.markmail.org/thread/ojjm7g5otejua33i -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: mail.jar, activation.jar and classloading
Mikolaj Rydzewski schrieb am 26.01.2011 um 12:07 (+0100): On Wed, 26 Jan 2011 11:52:04 +0100, Michael Ludwig mil...@gmx.de wrote: What is special about mail.jar (and activation.jar) that requires putting them into the common.loader? Any objects you want have access to via JNDI, have to be accessible by tomcat in order to create them. That means they should be located in common classloader. Thanks. So nothing intrinsically special about mail.jar itself? -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problema con tomcat
Moin moin, voy a replicar en inglés ya que mi castellano no es muy bien y esta lista usualmente es in inglés. Fierro, William Alfonso schrieb am 25.01.2011 um 04:08 (+): En la actualizadad tengo una aplicación configurada con Apache Tomcat/5.5.30, en la cual se encuentran 6 tomcat configurados, he notado que al realizar la verificación de los tomcat atravez de apache What do you mean by atravez de apache? Are you running Tomcat behind Apache httpd with mod_jk? What exactly are you looking at, some Apache status page? estos muestran hasta 700 conexiones al momento de realizar la revisión, sin embargo, cuando realizo la revisión de los tomcat, por probe, me muestra la cantidad real de usuarios conectados a la herramienta. And what are you looking at here, the manager application? Cuando reviso por apache, los tomcat tienen hasta 700 conexiones, al revisarlos por probe, muestra el real hasta 50 conexiones. Saludos! -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 400 error when a request does not map to a context
Christopher Schultz schrieb am 25.01.2011 um 11:48 (-0500): Should I expect that a request that doesn't map to a running context should return a 400 error? I would have expected a 404 Not Found. Definitely 404, as long as it isn't a bad request. Tomcat 6.0.29 and Tomcat 7.0.6 both behave this way. With no ROOT context deployed, make a request to something that doesn't map to a deployed webapp, like /nocontext or even / and you'll get a 400 Bad Request. HTTP Spec says 400 means The request could not be understood by the server due to malformed syntax but the request is perfectly valid. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Security question about Multiple instances of Tomcat running as non-admin users on a single box
Guy Pontecorvo schrieb am 21.01.2011 um 09:56 (-0800): We currently run multiple instances of tomcat Version 6.0.20, each in its own non-admin user account under Mac OSX 10.5. This has been a great way to host multiple web applications (student information systems) on a single box. Each app is secure in its own user account space and can't read or write outside of its user directory. But at the end of your message you write: We have too many instances to consider running each hosted app in its own vm. Well, why would you want to do that anyway? To increase application isolation? So do you have, say, three Tomcats, each in its own JVM, running under a user account of your choice, and each hosting, say, five apps? The biggest gotchas I can think of is can we get tomcat to run as a non-admin user and will tomcat respect ntfs file system permissions that should be setup for separate logs, temp files, etc.? Of course you can run Tomcat as non-admin. NTFS permissions is not something Tomcat may choose to respect or ignore, but something that is forced upon Tomcat by the OS. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: servlets under tomcat5 consume huge CPU usage
Petr Hracek schrieb am 19.01.2011 um 12:37 (+0100): The programs like 'jps' and 'jstack' are directorly in tomcat5 distribution or it has to be compiled on the system? They come with the JDK and are located in the JDK's bin/ directory. C:\Programme\Java\jdk1.6.0_23\bin -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can't load APR on Tomcat 6.0.24, RedHat Enterprise Linux 6.0 x86_64 with Sun Java 1.6.0_22
Tore Wilhelm Hermansen schrieb am 19.01.2011 um 14:51 (+0100): I can't get Tomcat (6.0.24) to load APR. I've tried installing the apr, apr-devel, apr-util, apr-util-devel and apr-util-mysql package from RedHat. Apr and apr-devel are needed, the rest is probably not. But you need one more component. See: http://tomcat.apache.org/native-doc/ The Apache Tomcat team is proud to announce the immediate availability of Tomcat Native 1.1.20 Stable. Download the TC-native 1.1.20 release sources | PGP signature Download the binaries for selected platforms. [ = Windows ] So for Linux, download the source from the link given on the doc page. Then you can compile following the instructions given there. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 6.0.26 startup issue
) at org.apache.catalina.startup.Catalina.load(Catalina.java:524) at org.apache.catalina.startup.Catalina.load(Catalina.java:548) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) at com.proactivenet.server.StartTomcat.run(StartTomcat.java:33) Found 1 deadlock. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Need to create a new thread for async operations
Captain Cid schrieb am 09.01.2011 um 08:27 (-0800): I want to start a new thread in service impl constructor. That's not necessarily the best place. This is because I need to run a thread will continuously do some operation in background using database. And I need to be able to stop it when tomcat is shutdown. javax.servlet.ServletContextListener -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: isapi_redirector.dll Problems - Bad Gateway?
amythyst schrieb am 03.01.2011 um 07:36 (-0800): Woo I fixed it! I changed the listener port from 8009 to 8010! And now it works! Congrats. The worker.properties you posted last year, however, read as follows: | worker.worker1.type=ajp13 | worker.worker1.host=localhost | worker.worker1.port=8009 But then, that was last year. ;-) -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: isapi_redirector.dll Problems - Bad Gateway?
amythyst schrieb am 03.01.2011 um 09:15 (-0800): Yup you are correct. It was 8009. And changing the port to 8010 seems to have resolved it. But I'm not sure why this has fixed it. Unfavourable firewall configuration? -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Novice's
Morten Bo Ølbye schrieb am 30.12.2010 um 12:39 (+0100): Dear all. I have tryed to find out how to use Tomcat. So far not very successfully. Some help is needed, but in order not to strain the user list too much i have put my request in my own link: http://www.graphelle-elektronik.dk/Apache_Software_Foundation/tomcat-help.html Well, you could have posted that here, it's rather short. On the other hand, much of it is confusing, or off-topic. Talking about stuff like wireless and OTA download request, for example. I'm wondering *why* you want to use Tomcat? What is your objective? If it's only for learning (which is fine, of course), you might benefit from reading an introductory level book such as Head First Servlets or whatever it is called. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: isapi_redirector.dll Problems - Bad Gateway?
amythyst schrieb am 28.12.2010 um 07:12 (-0800): With that script, how exactly would I execute that script? Save it to a file called, say, ajp.pl, and then: perl ajp.pl Windows doesn't come with Perl out of the box, so if you don't use Perl yet maybe it's not worth while downloading it. According to him, all the ports that we are using are open on the firewall... 8080, 8081, 443, 8443 and 8009. Tomcat is set to listen on port 8009 and I have configured the server.xml file to accept requests from 8009. But the ISAPI redirector doesn't get a reply from Tomcat so we're not sure the Tomcat side is working. Tools like netstat and the Perl script can help you determine where exactly the problem lies. When you ask how many threads I have configured you're talking about worker threads right? I only have the one. There are threads on both sides. If you haven't configured anything for your AJP connector the default applies, which is 200. http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat errors starting after upgrade from cent5.3 to 5.5 (/rebuild-jar-repository: error: Could not find)
Frank Even schrieb am 27.12.2010 um 00:46 (-0700): On Thu, Dec 23, 2010 at 1:06 PM, Caldarale, Charles R From: On Behalf Of Frank Even Starting tomcat5: /usr/bin/rebuild-jar-repository: error: Could not find jdbc-stdext Java extension for this JVM /usr/bin/rebuild-jar-repository: error: Could not find jndi Java extension for this JVM /usr/bin/rebuild-jar-repository: error: Some detected jars were not found for this jvm /usr/bin/rebuild-jar-repository: error: Could not find jaas Java extension for this JVM /usr/bin/rebuild-jar-repository: error: Some detected jars were not found for this jvm None of the above error messages come from Tomcat itself. What they do come from is not clear. - Chuck All of this is out of CentOS repositories and I'm limited to sticking with what is in the repositories. Google tells me the program producing the error message is part of the JPackage project. http://linux.die.net/man/1/rebuild-jar-repository They do have FAQ, mailing lists, etc: http://jpackage.org/ -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: isapi_redirector.dll Problems - Bad Gateway?
amythyst schrieb am 27.12.2010 um 06:52 (-0800): Hi, yes we have a connector configured for port 8009. Configured, okay; but it is not replying to your redirector's requests. You can test AJP connectivity using this Perl script: http://www.perlmonks.org/?node_id=766945 Question about the firewall... IIS is set up for port 8081 and 443 for our default website. The application is running on 8080 and 8443. And as I said, tomcat is listening on 8009 to route traffic to the application. In the firewall, I believe the network guy has set up port 8081 to allow traffic inside. Does he also need to do something for 8009 or 8080 and 8443? He needs to allow Tomcat to listen on 8009, and IIS to connect to tomcat-server:8009. The other two ports your Tomcat is configured to listen on should be irrelevant as far as the ISAPI redirector is concerned; it does AJP, not HTTP or HTTPS. We are running the app with SSL, so it would be the secure ports I should be focusing on right? Not for the AJP connection between IIS and Tomcat. Below are my worker files for the connector: # uriworkermap.properties - IIS /jira/*=worker1 Okay. # workers.properties.minimal - worker.list=worker1 worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 Also okay. If you don't configure the connection_pool_size, the default applies, which is 250 for IIS. http://tomcat.apache.org/connectors-doc/reference/workers.html How many threads have you configured for your AJP connector? -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: isapi_redirector.dll Problems - Bad Gateway?
amythyst schrieb am 20.12.2010 um 10:17 (-0800): The default website in IIS (version 6) is up and the ISAPI filter is loaded with the green light. However, when we go to the website we're getting a Bad Gateway error and the ISAPI logs say this: [Thu Dec 16 11:20:10.559 2010] [1508:1800] [error] ajp_get_reply::jk_ajp_common.c (2058): (worker1) Tomcat is down or refused connection. No response has been sent to the client (yet) Does Tomcat have an AJP connector configured for the port the ISAPI is expecting? Have you tried to run netstat? netstat -an -p tcp There should be something listening on the AJP port, probably 8009. Do you have a firewall that might block Tomcat? You could post your worker.properties file to provide further information. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 5.5.20
vikas.sha...@polaris.co.in schrieb am 21.12.2010 um 10:34 (+0530): Can you please tell me in which version this problem was fixed, so that i can upgarde the version of my tomcat to avoid this problem Why don't you simply upgrade to the latest version of your line? -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 7.0.4 on MAC my app works on Windows get...
Joe Greenawalt schrieb am 21.12.2010 um 12:04 (-0500): tomcat 7.0.4 on MAC my app works on Windows get... SEVERE: Exception starting filter struts2 java.lang.NoClassDefFoundError: Lorg/apache/velocity/app/VelocityEngine; i have removed all other applications from the webapps and have restarted the box. Application is built with maven, and i used the exact same war file. The JAR containing Velocity is missing at runtime. Or if present, it doesn't have the class the filter needs. Is Velocity in the WAR in WEB-INF/lib? -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 7.0.4 on MAC my app works on Windows get...
Joe Greenawalt schrieb am 21.12.2010 um 13:26 (-0500): Well since its the exact same war file placed in the exact same version of tomcat, the main variable being the OS (mac/windows) Not necessarily. The Tomcats might well be configured differently. What's the contents of the %Tomcat_Home%\lib\ folder on Windows? Or anything in conf\catalina.properties? Same story for the JVM. Velocity in lib/ext/, who knows? -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 7.0.4 on MAC my app works on Windows get...
Joe Greenawalt schrieb am 21.12.2010 um 15:22 (-0500): Good points, i'll start searching for them. Anyone have a OS X jar inspector recommendation? 'jarinspector' itself doesn't work on 10.6. Searching? For starters, you should check the following: dir %TOMCAT_HOME%\lib type %TOMCAT_HOME%\conf\catalina.properties dir %java_home%\jre\lib\ext -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 7.0.4 on MAC my app works on Windows get...
Joe Greenawalt schrieb am 21.12.2010 um 17:40 (-0500): interestingly its not Not what? (Lack of clarity and precision so typical of top-posting …) and when i add it to windows it works What do you mean when I add it? Weren't you saying that it worked on Windows even though there is no Velocity in the web app? So have you located the JAR on your Windows box now? (with some other things like velosity tools), but i still don't have it on my mac or in the app and it runs there. So i have a workaround, but still don't understand how. Guess i'll add it to the pom. Hmm? -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: HTTP Status 500 - Server Internal Error (continued!)
Hi Lewis, McGibbney, Lewis John schrieb am 20.12.2010 um 09:42 (+): I'm not sure the thread Tomcat points out wasn't stopped is related to Commons Logging. Could it be that you created the thread in your app? I think that you are correct here although if I post more of the log for you to see then maybe we can confirm whether it is a common issue or not 20-Dec-2010 08:55:11 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: A web application appears to have started a thread named [Thread-4] but has failed to stop it. This is very likely to create a memory leak. Well, Thread-4 isn't very informative, is it? You could take a thread dump just before shutting down Tomcat and then check if the unruly thread Tomcat points out is still running is also contained in the thread dump. If so you'll have more information on what causes this issue. In reading about ClassLoader I have come full circle and have ended up running back into my friend the Endorsed Standards Override Mechanism. I made Jena (which uses its own OWL parser, therefore no need for xerces) available to Tomcat in an endorsed folder, this should override the JAXP API's this seemed to solve the parser problem. http://jena.sourceforge.net/ - JAR is 23 MB You should probably place Jena in your webapp's WEB-INF/lib/ folder. This page has information on why to do so: http://wiki.apache.org/commons/Logging/UndeployMemoryLeak Notably: It is therefore a complete mystery to me why people seem so keen to push libraries up out of the components where they belong and into the container's library directories. It's like pushing user code into the operating system kernel. Just don't do it. The endorsed/ folder is not intended to accommodate arbitrary third party libraries. You can read up on what's meant to go there on the Java doc page I posted a link to. For example, the XML parser is. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: HTTP Status 500 - Server Internal Error
Moin Chris, Christopher Schultz schrieb am 20.12.2010 um 15:18 (-0500): On 12/19/2010 7:35 AM, Michael Ludwig wrote: In the case of Xerces, however, it is preferable to put the JAR(s) into %CATALINA_HOME%\endorsed (which may not exist but may be created) so they will be available to all of Tomcat and outmatch the Sun fork shipping with the JRE. I'm not sure I'd recommend this unless no other option will work: overriding the vendor-supplied XML parser with one that is quite old (as Xerces 2.6.1 appears to be) may open you up to security vulnerabilities as well as other incompatibilities with the library. I must have overlooked the ancient Xerces version, and the fact that it is bundled with Jena. I wonder why they're using such an old version? I don't recommend putting that into endorsed/. Thanks for catching this. In general, however, I would prefer Apache Xerces to the Sun fork, especially when using JDK 1.6. I've hit a couple of bugs in the Sun fork, and I'm not the only one. I've already seen so many bugs in the Sun JDK 1.6 Xerces version that I recommend people never to use it for production work […] In fact, at some stage I'd like to get rid of the Parse module: this module holds the Sun fork of the Apache Xerces parser, which is horribly buggy; I'd much rather use the Apache original which is much more reliable […] http://saxonica.blogharbor.com/blog/_archives/2009/6/26/4235816.html Those are harsh comments, but I didn't have to do top-notch development like Michael Kay to run into those bugs myself. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Webapp undeploy failure
Pid schrieb am 20.12.2010 um 19:39 (+): On 20/12/2010 17:13, McGibbney, Lewis John wrote: Looking at server.xml I find that 'wombra' is the only webapp specified […] Don't define your app in server.xml. To understand why, search the list archives for Caldarale and context, and/or read the relevant section in the manual. http://tomcat.apache.org/tomcat-6.0-doc/config/context.html -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: IS that a good idea moving all the common libs?
Luca Gervasi schrieb am 20.12.2010 um 18:15 (+0100): I'm trying to lower the permgen needed by a large amount of webapps moving all the commonly used libs to the tomcat common libs. My questions is: how good is that idea? I read that each *same* lib in WEB-INF/lib is handled as unique, thus requiring additional permgen space. http://wiki.apache.org/commons/Logging/UndeployMemoryLeak Keep component libs in components Servlet and J2EE containers have a clear purpose: to provide a set of services to *independent* and *isolated* components. That set of services is defined by the servlet and j2ee specifications. These specifications also define a mechanism for components to provide any libraries they depend on -- WEB-INF/lib. It is therefore a complete mystery to me why people seem so keen to push libraries up out of the components where they belong and into the container's library directories. It's like pushing user code into the operating system kernel. Just don't do it. I think the fact that many developers are keen to push libraries up out of the components where they belong is due to conceptions stemming from other environments, or probably even from their deeply entrenched desire to remove redundancy from systems, like avoiding to duplicate code, or striving to normalize tables. I remember those were my motivations before I had accepted that a Java application server has been designed to work differently than I had taken for granted. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: HTTP Status 500 - Server Internal Error
McGibbney, Lewis John schrieb am 18.12.2010 um 21:20 (+): I understand this now, my initial understanding was that Tomcat was distributed with a version of xerces (or some other) parser implementation Tomcat isn't, but the Sun JRE is shipping a forked and modified Apache Xerces. It has acquired a reputation for bugginess, though, which is why many people prefer to use Apache Xerces (formerly known as IBM XML4J, donated in 1999). I am trying to get to the bottom of what org.apache.xerces.util.XMLChar is and why it is causing the exceptions and errors when I lanuch the webapp. Something's compiled against this class and complains that it cannot be loaded. You need to make Apache Xerces available to the webapp in question. This can be achieved by putting the relevant JAR(s) in WEB-INF/lib. In the case of Xerces, however, it is preferable to put the JAR(s) into %CATALINA_HOME%\endorsed (which may not exist but may be created) so they will be available to all of Tomcat and outmatch the Sun fork shipping with the JRE. Can you expand on your final statement to provide more detail please, I am unfamilar with this configuration. Take a look at the setclasspath and catalina shell scripts in %CATALINA_HOME%\bin. Search them for endorsed and read up on the Java Endorsed Standards Override Mechanism: http://download.oracle.com/javase/6/docs/technotes/guides/standards/index.html -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to automatically undeploy a context
Alexandre FILLATRE schrieb am 19.12.2010 um 12:13 (+0100): The thing is that I'd be able to deploy some code whenever I want (in order to cleanup my database, clear the caches, etc) Have you considered using cronjobs, or a context listener? The system you want to run a job against might also have its own job running facility, e.g. MSSQL or Oracle do. and be sure this webapp will not be reloaded next time I restart the server. I could undeploy it manually, but I'd like it to be automatic. So I deploy the webapp, it does the job, then undeploy itself. I don't know if this is possible, but to me, it looks like a misuse of the application server as a one-shot job runner. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat stops responding
K J.Sreekumar schrieb am 19.12.2010 um 17:33 (+0530): Yes we are using apache httpd as front-end to tomcat using mod_proxy (not AJP). The configuration in httpd.conf are ProxyPass /rel/ http://localhost:8080/rel/ ProxyPassReverse /rel/ http://localhost:8080/rel/ Do the mod_proxy logs reveal anything interesting? Do you have the access log turned on for Tomcat? Requests will only be logged after processing, but it might still be useful to find out if requests get processed and with what outcome. http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Access_Log_Valve Please note that to isolate the issue we had replicated this behavior (of the application) by directly running it on tomcat (port 8080). Maybe I haven't followed closely enough, but it's not clear to me that this is the application's fault. How do you know? -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat stops responding
Mark Thomas schrieb am 19.12.2010 um 17:43 (+): On 17/12/2010 12:52, K J.Sreekumar wrote: This is the problem - 1. Our tomcat 6 server (version 6.0.29) does not respond after working for a couple of days. Browsers are unable to find application URLs (which were previously processed normally). 2. The logs does not show any error. 3. There are only a total of 50-60 threads in the thread dump, mostly in WAIT state. Also, it does not show any BLOCKING or LOCKED threads. 4. Memory utilization was 400MB only 5. TOMCAT restart does not fix the problem. The machine needs to be restarted to resume normal operation. 6. Netstat did not reveal any extraneous connections Have anybody here faced similar issue before ? Frequently. Usually a mis-match between the number of threads configured in httpd and the number of threads configured in Tomcat. Since mod_jk and mod_proxy use persistent connections by default and the BIO connector uses one thread per connection then if httpd has more threads configured you can eventually reach a state where all Tomcat's threads have been allocated and the next request blocks. Ah. Did you infer that from the OP's description of most threads being in the WAITING state? http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Thread.State.html There are two possible approaches. 1. Tune the time-outs 2. Disable connection re-use I'd go with 2 - it takes much less time to set up. Ignore the dire warnings in the docs. Most users don't notice the difference. Here's another take on the same matter from two years ago: Re: mod_jk - ajp hangs indefinitely on some requests - Rainer Jung http://www.mail-archive.com/users@tomcat.apache.org/msg54056.html -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: HTTP Status 500 - Server Internal Error (continued!)
McGibbney, Lewis John schrieb am 19.12.2010 um 18:56 (+): I managed to get over the parser issue by following your suggestions. Fine! I am now encountering errors with the class org/apache/common/logging/LogFactory when I try to launch webapp on Tomcat. Commons Logging is frequently encountered as a dependency in JARs you might want to include with your app - and unfortunately not always in compatible versions. Reading my Tomcat output logs I notice the following code in the final few lines before the console window closes. SEVERE: A web application appears to have started a thread named [Thread-4] but has failed to stop it. This is very likely to create a memory leak. Newer Tomcats detect errors that previously went by unnoticed. I'm not sure the thread Tomcat points out wasn't stopped is related to Commons Logging. Could it be that you created the thread in your app? Having delved into the world of commons logging I am interested to hear whether the correct solution to solve a memory leak when deploying/ undeploying a webapp is to include a class which implements ServletContextListener(according to commons wiki FAQ's). http://wiki.apache.org/commons/Logging/UndeployMemoryLeak This one? This is about references held by a class in the container classloader to a class in the webapp classloader, which prevents *all* of the webapp classes from being unloaded on undeploy. The problem is not related to Tomcat's complaint about the thread that wasn't stopped. I am concerned that in beating the parser problem I have opened a can of worms. Hmm, the missing Apache Xerces and the dangling thread are unlikely to be related. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat stops responding
K J.Sreekumar schrieb am 18.12.2010 um 17:57 (+0530): (i'm adding my name before my comments so that its easier to identity who said what if this conversation builds up further)- You could configure your mail client to use standard indentation. ** Sreekumar.* Using Firefox 3.6x we get the following error The connection was reset The connection to the server was reset while the page was loading. ** Sreekumar.* NETSTAT was output as follows Proto Local Address Foreign AddressState PID TCP0.0.0.0:21 0.0.0.0:0 LISTENING 1652 [inetinfo.exe] TCP0.0.0.0:80 0.0.0.0:0 LISTENING 1336 [httpd.exe] […] There's nothing running on port 8080. - do the same from a command window on the server itself, using localhost as the hostname. Same result ? ***Sreekumar* - The telnet output was as follows (same from local machine and a different workstation) HTTP/1.1 400 Bad Request Server: Apache-Coyote/1.1 Transfer-Encoding: chunked Date: Sat, 18 Dec 2010 09:57:04 GMT Connection: close What hostnames and ports did you use for these two telnet command? You're getting a Bad Request error because you omitted the Host header. It should include the hostname, e.g. localhost: GET / HTTP/1.1 Host: localhost CR CR Connection to host lost. Next we tried with /HTTP/*1.0 *instead - In this case, when on the local machine/server, we did not get any response and the telnet exited immediately after the 2nd [ENTER]. Also, we checked telnet /HTTP/*1.1* after restarting the machine (when everything was running fine), it still gives a BAD REQUEST. But telnet requests to /HTTP/*1.0* started working. HTTP 1.0 doesn't require the Host header. But I don't understand what worked and what didn't. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Where does my stderr go?
Thomas Kloeber schrieb am 17.12.2010 um 08:45 (+0100): hmmm, I'm not sure if the attachment of my last post got through. It did get through. How can I post files on the list? You could use http://pastebin.com/ or a similar service and post the URL. Might even be the preferred way for large files. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Question regarding class loading
Rishi Saraf schrieb am 17.12.2010 um 14:05 (+0530): I have two webapp in one tomcat(version 6.0) server instance as in application A and application B. On server startup server load first classes of A and then B. It might load one webapp before the other. The order is undefined as per the spec. If there was an order, it would be specific to Tomcat. Webapp load order tomcat 4 vs tomcat 5 http://www.mail-archive.com/users@tomcat.apache.org/msg35764.html My requirement is first load B and then A. How exactly does A depend on B? You could implant a listener in A that defers any initialization depending on B you might want to perform until B is present, as suggested in this thread from 2007: Webapp load order tomcat 4 vs tomcat 5 http://www.mail-archive.com/users@tomcat.apache.org/msg35777.html http://www.mail-archive.com/users@tomcat.apache.org/msg35802.html Note that webapps are designed to be decoupled from each other. If you want coupling, you have to do the work yourself. How can is change the sequence of class loading of two application in same webapp folder? The server loads the applications, and the order in which it does so is undefined. Cross-application dependencies need to take this into account. Tomcat Version : 6.0 -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat stops responding
K J.Sreekumar schrieb am 17.12.2010 um 18:22 (+0530): 1. Our tomcat 6 server (version 6.0.29) does not respond after working for a couple of days. Browsers are unable to find application URLs (which were previously processed normally). What does this mean? They're getting 404? Or any response at all? By Tomcat? Or some inbetween server? Can they access other services on the machine? Can you access Tomcat locally, i.e. from the same machine Tomcat is running on? 5. TOMCAT restart does not fix the problem. The machine needs to be restarted to resume normal operation. Might be a problem with the machine or the network, after all, not with Tomcat. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can tomcat detect disconnection by client side in Async mode?
Justin Randall schrieb am 07.12.2010 um 00:16 (+): Without knowing the application and going on standard sockets, I know from experience without using Async mode that Tomcat does generate a ClientAbortException when a TCP RST is received from a client when Tomcat is writing the HTTP response to the client. Which seems to mean that it is only upon request completion, or at any rate after beginning to write the answer, that Tomcat, or rather, the specific thread attempting to write to the socket, has a chance of being notified of an aborted client connection. So, there is no such thing as an active client connection registry maintained by the server, or possibly some other implementation property which a thread could check to find out about the state of the connection, is there? The client was a CPE which downloaded firmware/config via HTTP and sent a TCP RST after the first chunk of data if the version on the server and in the CPE were identical. Not sure if this is relevant and what the behaviour of your client would be for disconnecting from the server (assuming it's not a web browser). I'd really like to know the truth about this age-old myth, of which there's an example in this old message back from 2000: RE: STOP button of browser causes connection leak.. http://www.mail-archive.com/orion-inter...@orionserver.com/msg06077.html One of our engineers said that the web server should pick up on the connection being dead (back to the browser) so should abort the thread. Are there any servers at all that proactively notify their children or threads of aborted connections in order to stop them from serving them, or at least provide them the opportunity to cooperatively abort themselves when discovering an aborted connection - other than by having them attempt to write to the socket? Has anyone ever encountered any server at all caring in such a way about connections? Or is it all just what I labeled it - a myth? -Original Message- From: Ben xpsl...@gmail.com Date: Sun, 5 Dec 2010 14:25:56 Any idea about the disconnection handling? Cannot find reference for this. In my application the client may disconnect and send a new request with different parameters. On server side I wanna clean the AsynContext held by previous request. Right now only timeout will do, which is not efficient cos I set the timeout to quite high value to avoid frequent disconnect / connect. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can tomcat detect disconnection by client side in Async mode?
Ben schrieb am 05.12.2010 um 14:25 (+0800): Any idea about the disconnection handling? Cannot find reference for this. In my application the client may disconnect Nitpick: It may *abort* the TCP connection. Don't know why, but it seems to me that this is only ever called disconnect by mistake. and send a new request with different parameters. On server side I wanna clean the AsynContext held by previous request. Will the server even be notified? I still don't know if and how any HTTP server will be notified of this infamous user hit the cancel button event. Here's a thread back from 2002 in which a user inquired whether a servlet is notified of the stop button event: RE: Notification when HTTP client aborted connection? http://www.mail-archive.com/tomcat-u...@jakarta.apache.org/msg71310.html The question arises what the servlet should do on learning the user pressed the stop button? Press the virtual stop button on the database connection? This requires something like a signal being sent to the servlet, or the servlet doing non-blocking database IO, which I'm not sure is implemented anywhere. Right now only timeout will do, which is not efficient cos I set the timeout to quite high value to avoid frequent disconnect / connect. http://download.oracle.com/javaee/6/api/javax/servlet/AsyncContext.html http://download.oracle.com/javaee/6/api/javax/servlet/AsyncListener.html Will the container call onComplete or onError on the AsyncListener in this case? Will the container even be notified (by the OS?) of the TCP connection being aborted by the peer? Currently reading this article, might be of interest: Asynchronous servlets in Servlet Spec 3.0 http://www.softwareengineeringsolutions.com/blogs/2010/08/13/asynchronous-servlets-in-servlet-spec-3-0/ -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: SOT: JVM and DNS Failover
Moin Jordan, Jordan Michaels schrieb am 03.12.2010 um 10:39 (-0800): Would any of you be able to point me to some documentation on how the JVM handles DNS resolving? I'm hoping there are JVM settings that can be tweaked to help force the JVM to fail over to the secondary resolver. I'm using version 1.6 JVM. Networking Properties http://download.oracle.com/javase/6/docs/technotes/guides/net/properties.html#nct networkaddress.cache.ttl […] A value of -1 indicates cache forever. The default behavior is to cache forever when a security manager is installed, and to cache for an implementation specific period of time, when a security manager is not installed. So have you installed a security manager? Wondering myself what the default value is? sun.net.inetaddr.ttl This is a sun private system property which corresponds to networkaddress.cache.ttl. It takes the same value and has the same meaning, but can be set as a command-line option. However, the preferred way is to use the security property mentioned above. Still wondering. So is the implementation specific period of time the value taken from the OS? -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: SOT: JVM and DNS Failover
Michael Ludwig schrieb am 03.12.2010 um 20:31 (+0100): Networking Properties http://download.oracle.com/javase/6/docs/technotes/guides/net/properties.html#nct networkaddress.cache.ttl Wondering myself what the default value is? sun.net.inetaddr.ttl So is the implementation specific period of time the value taken from the OS? I think this rather means that it's up to the JVM vendor's gusto. In the absence of a security manger, the value can be tweaked here: C:\Programme\Java\jre6\lib\security\java.security Michael - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: SOT: JVM and DNS Failover
Michael Ludwig schrieb am 03.12.2010 um 20:51 (+0100): Michael Ludwig schrieb am 03.12.2010 um 20:31 (+0100): networkaddress.cache.ttl Wondering myself what the default value is? sun.net.inetaddr.ttl So is the implementation specific period of time the value taken from the OS? I think this rather means that it's up to the JVM vendor's gusto. In the absence of a security manger, the value can be tweaked here: C:\Programme\Java\jre6\lib\security\java.security The comments in that file (at least in my copy of it) really leave you wondering whether in the absence of a security manager, the default value is FOREVER or 30 seconds. And whether you can tweak it when running under a security manager. \,,,/ (o o) --oOOo-(_)-oOOo-- # The Java-level namelookup cache policy for successful lookups: # # any negative value: caching forever # any positive value: the number of seconds to cache an address for # zero: do not cache # # default value is forever (FOREVER). For security reasons, this # caching is made forever when a security manager is set. When a security # manager is not set, the default behavior is to cache for 30 seconds. # # NOTE: setting this to anything other than the default value can have # serious security implications. Do not set it unless # you are sure you are not exposed to DNS spoofing attack. # #networkaddress.cache.ttl=-1 -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: (Tomcat) Does NIO connector make a difference outside of 'Comet' ?
Caldarale, Charles R schrieb am 29.11.2010 um 22:47 (-0600): From: Michael Ludwig [mailto:mil...@gmx.de] can we say that: (a) blocking IO requires one thread (or, in some other server environments, one process) per socket Well, sort of. The actual requirement is one thread per established HTTP connection, where a connection is typically done using sockets. There's no switching overhead until traffic arrives on the connection, and the waiting thread is activated to process it. Otherwise, the thread is stalled until either input arrives or a timeout occurs. (b) non-blocking IO allows a thread or process to switch between sockets, thus providing scheduling and concurrency on just another level, possibly with advantages? Again, kind of. There's one thread that polls the connections for traffic Which is where the non-blocking comes in, because if it were blocking the thread would block on checking the connection (reading from the socket). and when something arrives, it passes the connection off to a request handler to do something useful with it. When the request handling is finished, the worker thread goes back to the pool, and control of the connection is relinquished to the polling thread. Consequently, you only need as many threads as there are active requests, as opposed to needing one per active (and usually idle) connection. That makes sense. Thanks. I suspect you'd be hard pressed to measure any switching difference between the two (NIO may actually be slightly worse); the main advantage of NIO is that fewer resources (threads) are tied up doing nothing while waiting for clients to send something. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: (Tomcat) Does NIO connector make a difference outside of 'Comet' ?
Mark Thomas schrieb am 29.11.2010 um 16:34 (+): On 29/11/2010 16:23, sol myr wrote: I've just started looking into the NIO Connector. And I see why it's great to combine NIO+Comet... But does it makes any difference outside of Comet? Yes. 1) Namely, if I only have old-fashioned Servlets (not a CometProcessor) - will it improve performance to use NIO connector (versus the good old HTTP connector)? That depends on how you define performance. I ran a test with such old-fashioned Servlet, and got the impression that Tomcat opens a thread-per-request. So it didn't take advantage of the non blocking feature of NIO. Thread per request - yes (it has to due to how the servlet API is defined) but not a thread per connection. That is a big difference. I'd like to understand this non-blocking IO thing. Given Sol Myr's example, can we say that: (a) blocking IO requires one thread (or, in some other server environments, one process) per socket, so the OS gets to switch between processes or threads a lot since they're likely to be waiting on IO; whereas (b) non-blocking IO allows a thread or process to switch between sockets, thus providing scheduling and concurrency on just another level, possibly with advantages? Thanks for your comments. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] Possible ThreadLocal memory leak in Apache Cocoon 2.1.11
Christopher Schultz schrieb am 27.11.2010 um 08:18 (-0500): We are using Cocoon with Xalan and Xerces: xalan-2.7.1.jar xercesImpl-2.9.1.jar Xalan is still stick in a 3-year rut with no releases. Lots of stuff has happened in the XSLT world since then... it's a shame that those standards aren't (appearing to) being actively developed. The XSLT and XPath standards are certainly being actively developed, there's an upcoming release of XSLT 3.0 (formerly known as 2.1). As for implementations, there's Michael Kay's Saxon for XSLT 3.0 (and 2.0 of course, for Java and .NET), and a new implementation of 2.0 for .NET called XQSharp (still beta). Xalan, LibXSLT, MSXML and System.Xml.Xsl are still at XSLT/XPath 1.0, though, and it doesn't look like that's going to change any time soon. If progressing, they must be doing so in U-Boot mode. Anyway, for Java you can just use Saxon if you want XSLT 2.0. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Servlet 2.5 SRV.14 and provision of JAX-WS
) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Servlet 2.5 SRV.14 and provision of JAX-WS
Konstantin Kolinko schrieb am 20.11.2010 um 17:51 (+0300): 2010/11/20 Michael Ludwig mil...@gmx.de: JAX-WS ships with Sun JDK 1.6 and seems the easiest way to code web services on this platform. It is really easy to get started: http://java.dzone.com/articles/jax-ws-hello-world http://java.dzone.com/articles/jax-ws-deployment-five-minute I have one question, though. JAX-WS is provided by JDK 1.6, so when I start Tomcat 6 with a 1.6 JRE why can't it use the JAX-WS from the JRE? Why do I have to supply a copy of JAX-WS (about 20 JARs in the ZIP you can download from http://jax-ws.java.net/) in WEB-INF/lib? If I don't, a ClassNotFoundException ensues. [1] Error configuring application listener of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener java.lang.ClassNotFoundException: com.sun.xml.ws.transport.http.servlet.WSServletContextListener Because there is no such class in your JRE (and there is none in mine as well). You are right. Thanks. Maybe I'm unclear about what constitutes the JRE and what doesn't. Without anything special in bin or the env var CLASSPATH set or JAX-WS in lib/ext, I can start the following from JRE 6: G:\Eclipse35ws\JAX-WS :: C:\Programme\Java\jre6\bin\java.exe -cp bin juma.WSPublisher starte juma.mohammad.greetingi...@addbf1 auf http://localhost:8283/ws/juma 20.11.2010 16:44:23 com.sun.xml.internal.ws.model.RuntimeModeler getRequestWrapperClass INFO: Dynamically creating request wrapper Class juma.mohammad.jaxws.SayHello 20.11.2010 16:44:23 com.sun.xml.internal.ws.model.RuntimeModeler getResponseWrapperClass INFO: Dynamically creating response wrapper bean Class juma.mohammad.jaxws.SayHelloResponse I don't know if these com.sun.xml.internal.ws.* things are part of the JRE or not, but they do seem to get loaded by jre6\bin\java.exe, and they are in rt.jar (runtime). So they are obviously part of the JRE? The same problem would be with com.sun.xml.ws.transport.http.servlet.WSServlet mentioned in the above article. There is no such class as well. Using com.sun.* classes directly is not recommended. They are not part of the official API and can change without notice. Yes. Also it would be strange to provide servlets in JDK/JRE, because javax.servlet.* is not part of JRE API. I think my error was lumping all these com.sun.*.ws.* packages together. Some of them do seem to be part of the JRE, others aren't. So while JAX-WS is provided by the JRE, the servlet specific parts of it aren't. Which is surprising in that I had assumed a servlet container would be the usual host for web services. So maybe the JRE has enough to run web service clients, but not web service servlets. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to configure a web app
André Warnier schrieb am 10.06.2010 um 21:52 (+0200): Assuming that some rogue application or filter *requires* site-specific parameters in web.xml, normally like so : ... init-param param-nameparameter1/param-name param-valuevalue1/param-value /init-param init-param param-nameparameter2/param-name param-valuevalue2/param-value /init-param etc.. Does there exist *any* way to put the actual values value1, value2, etc.. in some place *outside* the web.xml file, and *outside* the war that would be created for this application, and still allow the application, on startup, to read the values of these parameters from web.xml ? XML entity references? You can define an external general parsed entity (EGPE) and then reference it. Doesn't have to be well-formed; it is enough for it to be well-balanced, just like the two init-param nodes you've shown above. !ENTITY cust-init-params SYSTEM /home/cust123/web.xml.d/params.xml And then reference it using cust-init-params;. It requires the parser used by Tomcat to expand entities. Don't know if it is appropriately configured by default. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Whole file missing
btodd_22 schrieb: When I would do a clean and build in netbeans it would actually go into my webapps folder within tomcat and get rid of my WAR file. Netbeans *undeployed* your web application. Look for undeployment here: http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html Also see this message sent by Chuck: http://markmail.org/message/7zkvc733vs7rtlsl And as I understand this(correct me if i am wrong), once tomcat finds out that this WAR file is gone, it would delete that folder. Correct. The WAR is the master copy, the expanded directory is only there for Tomcat. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Configuring second tomcat instance on same box
li...@up-south.com schrieb: before yo go lambasting about the inner workings of email, read the RFC. Now we've all made the mistake of changing subject lines. So can we please move on now Thanx Sent via BlackBerry from T-Mobile Incidentally, *your* mailer doesn't set the In-Reply-To header; so while others are merrily hijacking threads, you're even tearing them apart. Time for some serious mail crime legislation! -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Application Logout Issues
Bruce Wayne schrieb: Users keep getting logged out of our Java apps within a minute or two for no apparent reason. All of your apps? How many? All different? Do they share some configuration? The reason for this is likely to be found in your applications, not in the OS or the JVM. I have tried various JAVA_OPTS, the most current one is at the bottom: Your JAVA_OPTS are most likely absolutely irrelevant. My timeout settings are as follows: # grep -i timeout conf/* conf/server.xml: connectionTimeout=2 conf/server.xml: acceptCount=10 debug=0 connectionTimeout=6/ Irrelevant. conf/web.xml:session-timeout30/session-timeout Relevant, but this is the default - 30 minutes. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcatThreadPool - when to make changes
Caldarale, Charles R schrieb: From: tjones1105 [mailto:tjo...@acworld.com] Subject: RE: tomcatThreadPool - when to make changes I really meant the Executor should I create a defined executor for each service? An Executor can only be nested inside a Service, and if referenced by a Connector, inhibits creation of a Connector-specific thread pool. Since you have two Service elements, you will have multiple thread pools, either explicitly created by nested Executor elements or implicit for each Connector. If you have only one Connector per Service, then the only thing an Executor offers is a bit more control over thread existence. Whether or not the finer-grained control available with an Executor is important to you is dependent on the arrival pattern of the requests you'll be handling, the physical resources of the machine you're running on, and whether or not Tomcat is sharing those resources with other processes. Is the possibility to enforce thread quotas for applications (via their Connectors) the main reason for the existence of Executors? What other reasons are there? -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: NoRouteToHostException Servlet not run
Sarah_Sh schrieb: I am new to tomcat and want to ask what I should do with this error message: Recovery thread failed to stop membership service. java.net.NoRouteToHostException: No route to host: Datagram send failed at java.net.PlainDatagramSocketImpl.send(Native Method) at java.net.DatagramSocket.send(Unknown Source) at org.apache.catalina.tribes.membership.McastServiceImpl.send(McastServiceImpl.java:385) INFO: Setting cluster mcast soTimeout to 500 It looks like your Tomcat is part of a cluster. http://localhost:8080/docs/config/cluster.html If you're new to Tomcat, what about getting started using a simpler scenario? By reverting to a standalone Tomcat without clustering? I work with tomcat 6 on a virtual machine (port 80) I can´t start a servlet with tomcat (tomcat say that the context can´t be found): is this caused by this error? No idea - I've never used clustering. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcatThreadPool - when to make changes
Christopher Schultz schrieb: Is the possibility to enforce thread quotas for applications (via their Connectors) the main reason for the existence of Executors? What other reasons are there? Executors can shed threads when they are not being used (see maxIdleTime config param), while the stock thread pool never releases connections after they are created. Another reason for Executors is for them to be /shared/ by Connectors. If you need to, say, listen for traffic across 10 ports (okay, it's a bit contrived... maybe across 10 IPs on port 80), then you'll need 10 Connectors. Rather than having to guess at which webapps will be the most popular and allocate threads to each thread pool accordingly, you can simply point them all to the same Executor and then all Connectors share the thread pool. Chris, thanks for these useful explanations. So, explicit Executors are useful for: * having multiple Connectors share a common thread pool * closing idle threads * enforcing thread quotas for a specific Connector or group of Connectors * maintaining common thread pool configuration -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcatThreadPool - when to make changes
Caldarale, Charles R schrieb: From: Michael Ludwig [mailto:m...@as-guides.com] Subject: Re: tomcatThreadPool - when to make changes Is the possibility to enforce thread quotas for applications (via their Connectors) the main reason for the existence of Executors? The Executor or Connector thread pool applies to everything under an Engine, so threads cannot be limited on a per-webapp basis. Thanks for catching this. After reading your comment and the doc [1], it seems to me that thread pools created implicitly by a Connector apply to that Connector only, while thread pools created explicitly by an Executor apply to Connectors referencing it by Connector/@executor. Neither scenario allows to impose a thread pool quota on a particular webapp. [1] http://localhost:8080/docs/config/executor.html -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Unable to access files outside Webapp directory in tomcat
asingla4 schrieb: I'm done with saving the file to C:\files but I don't know how to make it downloadable when the download button is clicked because the files folder is outside the webapp directory. Please read this thread: providing downloading functionality for a file which is on disk http://markmail.org/thread/ixx6oxtkdukp4xtf Especially Chuck's reply: RE: providing downloading [...] - Caldarale, Charles R http://markmail.org/message/6e2vxa3eixd5cvgf -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Strange problem with data source Tomcat 6.0.18
Schalk, glad you solved it. Michael Ludwig schrieb: Then I suspect a typo in your resource definition. I once had Resource/@url instead of Resource/@uri with the MySQL driver. The error was just: For posterity, I got this the wrong way around: Resource/@url is correct, Resource/@uri is incorrect. At least for that version of the driver - 5.1.7, I believe. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 6.0.20 different instances with diff ips but same port no 80
John Smith schrieb: Is it possible by using tomcat 6.0.20 with different instances with diff ips but same port no 80 on one system ??? Only one process can bind to any given IP/port combination. I ran instance a on port 80 (it ran), but when I tried to run another instance b on port 80 ( I got java.net.BindException: Address already in use Because that port is already taken for the IP number in question. My question is I need to run three applications on port 80 on same machine but different IPs, what is the best way and how ? Mark provided a link on how to configure different connectors. I made an effort of grokking all this server.xml configuration and have come up with two questions of my own. Please read on. You can use the following XSLT to strip your server.xml of all the helpful comments so you see that it's less frightening than it appears. xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:strip-space elements=*/!-- tabula rasa in -- xsl:output indent=yes/!-- tabula rasa out -- xsl:template match=comment()/!-- weed comments -- xsl:template match=@*|node()!-- identity template -- xsl:copyxsl:apply-templates select=@*|node()//xsl:copy /xsl:template /xsl:stylesheet So you have a Server [1]. It has a couple of Listener elements and GlobalNamingResources. A server may have mulitple Service elements. Don't ask me why you'd want more than one Service elements [2] - because that's what I'd like to ask the experts. Anyone? Anyway, as you can see from [2], a Service represents the combination of one or more Connector components that share a single Engine component for processing incoming requests. Define all the connectors [3] you want for your different IP numbers and ports. They'll all be processed by the single Engine [4], which supports virtual hosting and dispatches incoming requests (based on the HTTP Host header) to a matching virtual host, or, failing that, the default host, which is mandatory both as Engine/@defaultHost and Engine/Host/@name. As a configuration artefact, the Host [5] is decoupled from the IP numbers and only associated with DNS names or aliases. IP numbers and ports are the job of the Connector. Now you could nest Context elements defining your applications inside Host elements - but in Tomcat 6 this is not recommended. Now each Host has its place where to look for applications, which is configured in Host/@appBase. That's where you put your WAR files. Here's my second question: Say I have various Connector bindings set up receiving requests and dispatching them to my single Engine, which has three hosts alpha, beta and gamma. What would be the best way to associate my shiny new second-world.war with all of alpha, beta and gamma? (1) By dropping a copy in each of the different Host/@appBase? (2) By having all three Host/@appBase point to the same location (and then of course put the WAR there)? (3) By some other means? -- Michael Ludwig [1] http://tomcat.apache.org/tomcat-6.0-doc/config/server.html [2] http://tomcat.apache.org/tomcat-6.0-doc/config/service.html [3] http://tomcat.apache.org/tomcat-6.0-doc/config/http.html [4] http://tomcat.apache.org/tomcat-6.0-doc/config/engine.html [5] http://tomcat.apache.org/tomcat-6.0-doc/config/host.html - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 6.0.20 different instances with diff ips but same port no 80
Caldarale, Charles R schrieb: From: Michael Ludwig [mailto:m...@as-guides.com] A server may have mulitple Service elements. Don't ask me why you'd want more than one Service elements [2] - because that's what I'd like to ask the experts. Anyone? Seemed like a good idea at the time? If you look inside Tomcat, you'll see that it's a set of nested containers, with Server being the top one, and Service the next layer. You might want to use multiple Service elements if you want to run a single JVM with independent servlet engines inside (think embedded controller, where the number of processes is limited). Thanks, that sufficiently clarifies it. (3) By some other means? By placing a second_world.xml file in each of the conf/Catalina/[host] directories, with the Context element therein having a docBase attribute pointing to the actual location of the .war file. This is pretty much equivalent to #2, except you can tailor the Context element for each Host, if needed. A detail that adds flexibility and makes a difference. In practice, I would probably deploy the app, grab the extracted second_world.xml, put it under version control (I know admins don't use that, but I would), make my changes, commit them, and then place a copy in each of the aforementioned directories so it prevents the original from the WAR to be extracted and used. Does that sound like solid operating procedure? :-) Regardless, your webapp will be deployed once for each Host. If you don't want that, just use a single Host, and let it field requests for all of alpha, beta, and gamma. Just to be sure, would I do that by using: Home name=alpha ... Aliasbeta/Alias Aliasgamma/Alias -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 6.0.20 different instances with diff ips but same port no 80
Caldarale, Charles R schrieb: I would probably deploy the app, grab the extracted second_world.xml, put it under version control Why not just start out with the Context element under version control? No need to even have it in the .war file if you're always going to override it. Right. I just imagined being a Tomcat admin receiving an alien WAR without source, but with its particular context.xml - and having to deal with it, and possible successor versions. Home name=alpha ... Aliasbeta/Alias Aliasgamma/Alias The Alias elements aren't needed. If you just have a single Host - which must be the defaultHost for the Engine - all requests go there regardless. It's only when you have multiple Host elements that the name attribute and any Alias elements come into play. That makes sense. Thanks! -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: java.lang.UnsatisfiedLinkError: running tomcat on java headless?
method8 schrieb: I'm using the iText library to generate pdfs from a database on the fly. Whenever I use some of it's features that require simple things like java.awt.Color, I get an java.lang.UnsatisfiedLinkError as shown: java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-1.5.0-sun-1.5.0.18/jre/lib/amd64/libawt.so: libmlib_image.so: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) [...] at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.loadLibraries(Toolkit.java:1509) After some research and verifying that libawt.so physically exists But what about libmlib_image.so? That's the one it's complaining about. Here's what I can see on a non-X Linux system: $ ldd /usr/lib/jvm/java-1.5.0-sun-1.5.0.17/jre/lib/i386/libawt.so linux-gate.so.1 = (0xb7f67000) libmlib_image.so = not found libjvm.so = not found libm.so.6 = /lib/i686/cmov/libm.so.6 (0xb7eb1000) libdl.so.2 = /lib/i686/cmov/libdl.so.2 (0xb7ead000) libjava.so = not found libc.so.6 = /lib/i686/cmov/libc.so.6 (0xb7d52000) /lib/ld-linux.so.2 (0xb7f68000) Still, compiling and running a color example works fine for me. (From the command line, that is.) It works because of the built-in value for the system property java.library.path. m...@seestern:~ /usr/lib/jvm/java-1.5.0-sun/jre/bin/java LibraryPath /usr/lib/jvm/java-1.5.0-sun-1.5.0.17/jre/lib/i386/client /usr/lib/jvm/java-1.5.0-sun-1.5.0.17/jre/lib/i386 /usr/lib/jvm/java-1.5.0-sun-1.5.0.17/jre/../lib/i386 Download an example that *I think* requires AWT. http://itextdocs.lowagie.com/examples/com/lowagie/examples/directcontent/colors/SpotColors.java m...@seestern:~ javac -target 5 -bootclasspath \ /usr/lib/jvm/java-1.5.0-sun/jre/lib/rt.jar \ com/lowagie/examples/directcontent/colors/SpotColors.java m...@seestern:~ /usr/lib/jvm/java-1.5.0-sun/jre/bin/java \ com/lowagie/examples/directcontent/colors/SpotColors Pantone example : Spot Color The result looks fine! I read somewhere that whenever java is installed no a linux box without x (in my case it's a remote vps) java omits certain graphics related libraries like AWT (naturally). There is no X11 server on that machine; the Sun Java is installed via the package manager; everything seems fine. I also read that you can run java headless to avoid the dependencies to X. Now is there a way to run tomcat (or add variables to tomcat's startup.sh) to avoid having these dependencies? Aren't the dependencies simply required? I think the JVM wants to load libmlib_image.so because it is needed. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Is resource-ref really needed?
Robert Whane schrieb: There has to be some use of that resource-ref element. All the Tomcat examples and tutorials instruct you to create this element. Someone really badly wants you to use it, yet it seemingly has not function whatsoever. Something just doesn't add up, or maybe it's just me... It's not just you. I've also been wondering why you should need it when obviously you don't as your Resource works without a resource-ref. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: java.lang.UnsatisfiedLinkError: running tomcat on java headless?
method8 schrieb: - But what about libmlib_image.so? That's the one it's complaining about. I can see that as well. So check the value of java.library.path. Just to be sure. Could it be it's just Debian the problem? I develop on windows and deploy on a debian machine, and had some problems in the past with policies and socket permissions. Try running your Itext examples from the command-line on your server. If that works, I'd look for the issue in how you set up the environment for Tomcat. I don't know if that could be a problem, but is there more than one Java installation on your machine? Do Java library directories show up in the output of ldconfig -p? Could that confuse the JVM about what library to load? -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: java.lang.UnsatisfiedLinkError: running tomcat on java headless?
Tim Funk schrieb: http://wiki.apache.org/tomcat/FAQ/Linux_Unix You're probably alluding to: How do I run without an X server and still get graphics? You either need to run headless or run an alternate X-server. [...] if your are using a JVM 1.4 or better, you can use the system property java.awt.headless=true Indeed, isHeadless() returns true for my Java 5 and 6 installations. import java.awt.GraphicsEnvironment; // http://mindprod.com/jgloss/headless.html public class Headless { public static void main( String[] args) { boolean headless = GraphicsEnvironment.isHeadless(); System.out.println( Ohne Tastatur, Maus, GUI? + headless); String p = java.awt.headless; System.out.println( p + ? + System.getProperty( p)); } } The iText color test (which produces graphics in a PDF) still works when I specify java.awt.headless=false, which also makes isHeadless() return false. So it seems to work with or without this headless property. So why does it not work for Method8 (the OP)? -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: java.lang.UnsatisfiedLinkError: running tomcat on java headless?
Tim Funk schrieb: 1) Are you passing -Djava.awt.headless=true to tomcat via CATALINA_OPTS (or JAVA_OPTS) I'm passing this option to my tests on the command line. The OP was the one with the Tomcat issue; I suggested he run the iText tests on the command line as well to be sure at least that works. 2) I have found that even if you are headless, you can't use all the Graphics/awt stuff. After reading the following, I have a clearer understanding of what this headless thing is all about. http://java.sun.com/developer/technicalArticles/J2SE/Desktop/headless/ Of course - since you are using iText - this shouldn't be an issue. Indeed, and it isn't for me - only for the OP. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Db connection issue due to firewall
Christopher Schultz schrieb am 31.08.2009 um 11:21:32 (-0400): Resource name=jdbc/oracle auth=Container [...] validationQuery =select 1 from dual testOnBorrow =true testOnReturn =true testWhileIdle =true removeAbandoned=true timeBetweenEvictionRunsMillis =60 numTestsPerEvictionRun =3 minEvictableIdleTimeMillis =65 moveAbandonedTimeout=180 logAbandoned=true / You also shouldn't need testOnReturn and testWhileIdle, though I understand you're probably desperate. I can't imagine that it matters, but you might want to take out the spaces after the = signs in your XML (like validationQuery =true). Superstition! The spaces are allowed, if uncommon. I know desperation can get you to do such things, but unfortunately hardware and software systems lack both humor and compassion :-) -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Strange problem with data source Tomcat 6.0.18
sch...@afrigis.co.za schrieb am 31.08.2009 um 23:16:48 (+0200): I have set-up a data source using the context.xml file located inside my META-INF and added the relevant entry in the web apps web.xml. I also have the MySQL connector/j driver inside my own apps lib as well as inside the server's lib(same version). That's wrong. The driver must not be in both locations. It must be made available to the common classloader, which provides classes to both the server and the applications. Discard the driver from your application. Now when I deploy the .war to the server in which the db is running, the archive is deployed but when I now try to get a connection to the same db and same server as from my local machine I get: Cannot create JDBC driver of class '' for connect URL 'null' Are you doing a proper deploy using the manager application? Or removing the WAR and properly waiting for Tomcat to discover this? Or are you improperly clobbering the WAR? That would leave a stale context.xml for your application in place. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Strange problem with data source Tomcat 6.0.18
sch...@afrigis.co.za schrieb am 31.08.2009 um 23:57:07 (+0200): Hi there Michael, Ok, I removed the mysql jar from my app and left it in tomcat/lib I also undeployed and then redeployed the war file via the manager app but the problem persists. Then I suspect a typo in your resource definition. I once had Resource/@url instead of Resource/@uri with the MySQL driver. The error was just: Cannot create JDBC driver of class 'com.mysql.jdbc.Driver' for connect URL 'null' Double-check your resource definition. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Strange problem with data source Tomcat 6.0.18
sch...@afrigis.co.za schrieb am 01.09.2009 um 00:29:34 (+0200): I am starting to think it might very well have to do with my context.xml file. I just saw in the logs that Tomcat was actually giving error saying that it could not deploy myapp.xml. After reading some on the web I discovered that this is actually my context.xml that Tomcat is picking up and then renames to my app's name but then something goes wrong Here is my context.xml file, I have changed it slightly since I saw the error removing path http://tomcat.apache.org/tomcat-6.0-doc/config/context.html The value of this field must not be set except when statically defining a Context in server.xml, as it will be inferred from the filenames used for either the .xml context file or the docBase. and docbase The value of this field must not be set when the Context is configured using a META-INF/context.xml file as it will be inferred by the automatic deployment process. and adding factory Probably not necessary. Might there be an ever so slightly different way that this is handled with Tomcat on Linux as opposed to Windows? There are some slight differences pertaining to case-insensitive filesystems, but that's probably not relevant here. context debug=5 reloadable=true crossContext=true Try capitalizing context to Context. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat-users.xml on Tomcat6
Zaki Akhmad schrieb: I've failed login on manager webapp and host-manager webapp. I've add the manager and admin role on tomcat-users.xml [/etc/tomcat6/tomcat-users.xml]. The status is HTTP Status 500. What's the message in the error log? Did you restart Tomcat? Did you read the doc concerning the MemoryRealm? http://localhost:8080/docs/realm-howto.html#MemoryRealm The usual expert advice on this list is to avoid the prepackaged Tomcat and install the real one that can be downloaded from the Apache site. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat cluster fails and generates tons of logs
CS Wong schrieb: Periodically, I'm getting problems with my Tomcat 6 cluster (2 nodes). One of the nodes would just go haywire Could you elaborate on what going haywire means? Below, you write: [The NoSuchElementException is] the only thing that it shows. The other node in the cluster is still active at this time. There's nothing to do but to restart. The large amount of logs has caused disk space issues more than a couple of times too. So is that server not active any more? Unresponsive? Hyperactive writing to the log file? Looping? and generate a ton of logs repeating the following: Aug 25, 2009 11:44:10 AM org.apache.catalina.ha.session.DeltaRequest reset SEVERE: Unable to remove element java.util.NoSuchElementException at java.util.LinkedList.remove(LinkedList.java:788) at java.util.LinkedList.removeFirst(LinkedList.java:134) at org.apache.catalina.ha.session.DeltaRequest.reset(DeltaRequest.java:201) at org.apache.catalina.ha.session.DeltaRequest.execute(DeltaRequest.java:195) at org.apache.catalina.ha.session.DeltaManager.handleSESSION_DELTA(DeltaManager.java:1364) at org.apache.catalina.ha.session.DeltaManager.messageReceived(DeltaManager.java:1320) at org.apache.catalina.ha.session.DeltaManager.messageDataReceived(DeltaManager.java:1083) at org.apache.catalina.ha.session.ClusterSessionListener.messageReceived(ClusterSessionListener.java:87) I only found this, which seems to have led you here: http://stackoverflow.com/questions/1326336/ Maybe it is helpful to others who know about Tomcat internals. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Error libphp4.so is not a valid load module: Bad magic number starting Apache
gloria.agu...@accenture.com schrieb: I had installed PHP 5.2.2 with Apache 2.0.59 to use Control-M WebAccess 6.2.01, but I had a problem because in the WebAccess when I clicked in any link of the page the WebAccess log out. This is off-topic here; please take it to a suitable PHP forum or mailing list. (And explain to them WTF is WebAccess.) http://www.php.net/mailing-lists.php -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Error libphp4.so is not a valid load module: Bad magic number starting Apache
gloria.agu...@accenture.com schrieb: # ./apachectl start Syntax error on line 232 of /opt/hpws/apache/conf/httpd.conf: Cannot load /opt/hpws/apache/modules/libphp4.so into server: '/opt/hpws/apache/modules/libphp4.so' is not a valid load module: Bad magic number Sorry for being a bit rude. Read on to see the reason for the error. But I think the line 232 is good: LoadModule php4_module /opt/hpws/apache/modules/libphp4.so It probably is. because this same line with 5 instead of 4 works fine for the PHP 5. But that has nothing to do with the PHP version number. I didn´t find a solution in Internet. Please, could you help me? Finding the solution usually involves using a search engine such as Google to find other descriptions of the problem. They will very likely include the error message. So you should do a search for: not a valid load module: Bad magic number Try quoting the message to get verbatim matches. Don't include the library name in the search as that is an accidental property of your case. After some clicking you'll see that it is a 32 vs 64 bit issue. http://forums.sun.com/thread.jspa?threadID=5263283 So you need to get the correct version for your machine, either 32 or 64 bit. Good luck. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat copies context.xml to conf/Catalina/localhost/app.xml but never updates it?
arjan.tijms schrieb: I always just copy my web application statically to Tomcat's webapps directory ($CATALINA_BASE/webapps) for the production server Insufficient, as Chuck has pointed out: use the manager app. and use MyEclipse for deployment during development. If you use an Eclipse-managed Tomcat, you may then have to right-click on the Server entry in the Servers view and choose Clean. You might want to check what's on the filesystem in the relevant directory before and after cleaning (using something like dir /s /b) so you understand what's going on. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Change the deployment path to another name than the .WARs name
fritzdimmel schrieb: I'd like to define somewhere (context.xml or server.xml??), to take a WAR called mywebapp.war and deploy it to the folder webapps/xyz. Browse to the Tomcat docs on the context [1], read at least the introduction and the section on Common Attributes. Note that Context/@path allows you to do just what you want, but also note that: | The value of this field must not be set except when statically | defining a Context in server.xml, as it will be inferred from the | filenames used for either the .xml context file or the docBase. Also note that for Tomcat 6, this is *not* a recommended practice: | For Tomcat 6, unlike Tomcat 4.x, it is NOT recommended to place | Context elements directly in the server.xml file. This is because | it makes modifing the Context configuration more invasive since the | main conf/server.xml file cannot be reloaded without restarting | Tomcat. So you even might want to reconsider this option and follow one of the other approaches listed in the introduction. [1] http://localhost:8080/docs/config/context.html -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat copies context.xml to, conf/Catalina/localhost/app.xml,but neverupdates it?
M4N - Arjan Tijms schrieb: I fully understand the need for global overrides, but the procedure of copying the very first encountered context.xml from a web application and then continue to use that as the global override variant, I'm sorry but I just don't see the logic in doing that. Maybe you have a point here. Isn't the problem that once a context descriptor from META-INF/context.xml is copied to its target destination in $CATALINA_BASE/conf/[engine]/[host]/[app].xml Tomcat forgets that it is just a copy from somewhere else and treats it exactly as any context descriptor that was there before and - naturally - refuses to overwrite it with anything else as it might well be the one and only master copy? -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat copies context.xml to conf/Catalina/localhost/app.xml, but never updates it?
M4N - Arjan Tijms schrieb: I always just copy my web application statically to Tomcat's webapps directory ($CATALINA_BASE/webapps) for the production server Insufficient, as Chuck has pointed out: use the manager app. Does that, basically, mean that the static deployment method is deprecated? I'm getting this feeling, too. Static deployment does not seem to handle META-INF/context.xml - and that looks broken. Currently the documentation says: If you are not interested in using the Tomcat Manager, or TCD, then you'll need to deploy your web applications statically to Tomcat, followed by a Tomcat startup. See: http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html Reading this gives me the impression that I can use it. If I should not use the static deployment mechanism, shouldn't this entry be removed from the documentation? It seems misleading indeed. Maybe the description of the deployment sequence should amend this sentence: | 1. Any Context Descriptors will be deployed first. to include a warning like: Achtung! This will only happen if there is no Context Descriptor present at the target location. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat copies context.xml to conf/Catalina/localhost/app.xml, but never updates it?
Mark Thomas schrieb: Michael Ludwig wrote: Static deployment does not seem to handle META-INF/context.xml - and that looks broken. No, static deployment is not deprecated. Static deployment *does* handle context.xml. It is working as designed. If you delete the WAR/DIR *and wait for Tomcat to spot this* then any CATALINA_BASE/engine/host/context.xml will be deleted. Not rather $CATALINA_BASE/conf/[engine]/[host]/[appname].xml ? And does it also apply when the [appname].xml wasn't copied there by Tomcat but placed there by the admin? I suspected that Tomcat doesn't distinguish between the two cases. If you overwrite the WAR/DIR then the CATALINA_BASE/engine/host/context.xml will be left alone. This should go into the doc (possibly in corrected form), unless it is there in some form and we haven't seen it. Currently the documentation says: If you are not interested in using the Tomcat Manager, or TCD, then you'll need to deploy your web applications statically to Tomcat, followed by a Tomcat startup. See: http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html This seems to imply that you have to shut down Tomcat before static deployment. It seems misleading indeed. Maybe the description of the deployment sequence should amend this sentence: | 1. Any Context Descriptors will be deployed first. This means any files found in CATALINA_BASE/engine/host/context.xml Just to be 100% sure, does that mean: Any WARs or web application directories referenced from Context Descriptors found in $CATALINA_BASE/conf/[engine]/[host]/ ? Like: C:\MILU\Server\Tomcat60\conf\Catalina\localhost\import.xml C:\MILU\Server\Tomcat60\conf\Catalina\localhost\xpgj.xml -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Beginner
Mohamed Shah schrieb: May I know which is the root directory for source files like html,jsp. I guess it is webapps. No, webapps is the directory where you put your web applications. Within your web application, the top level directories is for HTML and JSP. But of course you may also put them further down, in subdirectories you may create, if you find this more convenient. Two special directories are WEB-INF and META-INF. I suggest you treat yourself to a good read of the Servlet specification, a PDF copy of which you may download from here: http://jcp.org/aboutJava/communityprocess/mrel/jsr154/index2.html How to call the files using browser. http://localhost:8080/mywork/name.jsp Is this right way to use? Yes, that will GET you /name.jsp in the context /mywork on localhost:8080. Then How to check if the service runs? I don't have admin rights but I called in startup.bat using command prompt and set the catalina_home variable to apache directory. I don't quite get what you've done here and whether it works or not, but startup.bat (and Ctrl-C to shutdown) should serve fine for the first steps. If you want to know more, there is a handy user guide on the web and also in your local Tomcat installation, likely to be reached at: http://localhost:8080/docs/ -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Trailer header and tomcat
Christopher Schultz schrieb: When chunked encoding is being used, HTTP allows you to include headers after the response by including a final chunk with more headers for the previous chunk. So those traling headers are actually footers. The headers you want in this chunk should be mentioned in the Trailer header in the previous response. Or trailers. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat copies context.xml to conf/Catalina/localhost/app.xml but never updates it?
Mark Thomas schrieb: M4N - Arjan Tijms wrote: Anyone has any idea? Search the archives. This been covered repeatedly. Hint: Tomcat has a manager app. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Export Eclipse Web Service to Tomcat
Toriacht schrieb: The web service runs fine within Eclipse on a Tomcat 6 Server. I want to deploy this to an external Tomcat server(not running within eclipse) but I am unsure how. I know (I think!) I need to FileExportWebWAR File. Is this correct? There must be more to it!! Make sure you export it to your target Tomcat's webapps directory and then start your target Tomcat on a free port. That should be it. What do I do with the .jars referenced in Java Build Path and Java EE Module dependencies - do these get added to the WAR or do I need to manually copy this to tomcat server. If so to what folder? What's been added using Add JARs will be added to the WAR; what's been added using Add External JARs won't. The former must not be provided by your target Tomcat; the latter has to be provided by your target Tomcat. http://www.informit.com/articles/article.aspx?p=367962 When clicking on Add JARs, I was surprised I didn't have any options to add JARs, as there weren't any in my project yet. Well, you simply have to import JARs into your project, straight into WEB-INF/lib, or whatever your lib folder is. That'll ensure your JAR is part of the distributatble (the WAR). Then, add it using Add JARs, so Eclipse knows about your JAR for *building*. In fact, for multiple usage of the JAR, references to it are created, so the JAR doesn't get copied around uselessly. *Question* of mine here for the more knowledgeable Eclipse users: Is it customary or reasonable to create a JARs pseudo-project in Eclipse for third-party JARs (like the Servers pseudo-project) so all actual projects reference these JARs? The web service references .config files on my c: drive that sets up JDBC driver etc. I probably need to change location of these files to a folder in Tomcat? What is protocol? Would configuring a JNDI/JDBC DataSource be an alternative to your .config files? That's usually the best way. Check out chapters 8 and 9 of this handy user guide: * 8) JNDI Resources * 9) JDBC DataSources http://tomcat.apache.org/tomcat-6.0-doc/index.html The service also references a log4j properties stored file in the src folder. Where should I put this on Tomcat server? On the same level as src, create a directory called properties and put your file there. In Project Properties Java Build Path Source, add this folder so Eclipse knows this is relevant for building. The log4j properties file sets up a log file on my c: drive. I probabl need to edit location of log file, again what is protocol? Edit the file before exporting according to your wishes. Is there an easy way of testing the deployed .war is running correctly? Depends on what tests you have set up. For an XML web service, tests should be rather doable. You could use Schematron or Canoo WebTest. Do I need to put the axis2 .jar on the Tomcat? Don't know. Unless it is special (like a database driver), providing it with the web app should do the trick. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: providing downloading functionality for a file which is on disk
Caldarale, Charles R schrieb: If you don't mind providing direct access to the downloadable area, one easy way to provide this is to place a Context element in conf/Catalina/[host]/[dlink].xml, where [dlink] is the URL link you want for the downloadable files. Within the Context element, place a docBase attribute that points to the directory that downloads occur from. No programming required. Context docBase=/usr/myName/downloads/ and it would be placed in conf/Catalina/localhost/files.xml. That's convenient. I tried including an additional Context file named import.xml with an unrelated web-app, thinking that by some chance it might result in a second context being configured. Context path=import docBase=C:\MILU\data\ASV-DS/ (I'm aware you should never set either @path or @docBase on META-INF/context.xml as they are inferred, but the above was meant for a different context needing these parameters.) -- M:\WORKSPACE\XPGJ\WEBCONTENT │ ├───META-INF │ context.xml │ import.xml │ MANIFEST.MF │ └───WEB-INF │ web.xml -- As I suspected, no second context gets configured. Is there a way of including a second context with a web application in a similarly convenient way? Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat Adapter for Eclipse 3.5 Galileo?
I seem to remember that Eclipse 3.4 (Ganymede) with WTP (Web Tools Platform) had configurations for Tomcat 5.5 and 6.0 in the Servers view that I just had to hook up with my local Tomcat installation in order to get things working. Now I downloaded Eclipse 3.5 (Galileo), and there are no configurations whatsoever in the Servers view. On clicking Download additional server adapters from the New Server dialog, I'm presented with a list of adapters including Geronimo, Glassfish, Jetty, and others, but Tomcat is missing. Did some googling and FAQ reading, but to no avail. Does anyone know what steps I have to undertake in oder to get the Tomcat adapter working within Eclipse 3.5 Galileo? Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Adapter for Eclipse 3.5 Galileo?
Ken Bowen schrieb: This may not be all that helpful, but: I use MyEclipse 3.5.1 (myeclipse.org) Thanks for your quick reply, Ken. That site doesn't seem to be online. Maybe you meant this one: http://www.myeclipseide.com/ which comes with all that and lots more plugins, for currently $32/yr. Saves a variety of pain. That's nice, of course. Still, I'd like to know how to assemble the beast myself. Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Adapter for Eclipse 3.5 Galileo?
Antonio Petrelli schrieb: 2009/7/15 Michael Ludwig m...@as-guides.com: Now I downloaded Eclipse 3.5 (Galileo), and there are no configurations whatsoever in the Servers view. Absolutely no configuration? Then it is strange. In Galileo (Java EE development edition) I have Tomcat configurations and I tested it already (and it's working obviously). Thanks, Antonio. Okay, that might be the reason. I didn't download the Java EE version, but the plain Java version plus WTP (Web Tools Platform). It allows me to install Glassfish, so I think it should theoretically allow me to install Tomcat. Does anyone know the name of the Tomcat adapter feature? Or a URL to download the feature? It seems that you have a broken download. I don't think so. Did you try to open a clean workspace? Yes. Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Adapter for Eclipse 3.5 Galileo?
Michael Ludwig schrieb: Now I downloaded Eclipse 3.5 (Galileo), and there are no configurations whatsoever in the Servers view. On clicking Download additional server adapters from the New Server dialog, I'm presented with a list of adapters including Geronimo, Glassfish, Jetty, and others, but Tomcat is missing. I found what looks like the Tomcat adapter homepage: EclipsePlugins : details for the Enhanced Tomcat adapters for WTP Eclipse plugin (Tomcat) http://www.eclipse-plugins.info/eclipse/plugin_details.jsp?id=1664 The link to the plugin-homepage, however, leads to Woopsie. An error... And it seems to have been so for two months now. Maybe there is another way to get at the plugin. Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Adapter for Eclipse 3.5 Galileo?
Antonio Petrelli schrieb: 2009/7/15 Michael Ludwig m...@as-guides.com: Does anyone know the name of the Tomcat adapter feature? Or a URL to download the feature? It should be JST Server Adapters Thanks again, Antonio. I thought so, too, but that only creates a template for J2EE Preivew. Should have provided that info straight away, sorry. While we're at it, WST Server Adapters doesn't produce Tomcat either, but only results in HTTP Preview and HTTP Server. Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Adapter for Eclipse 3.5 Galileo?
Antonio Petrelli schrieb: 2009/7/15 Michael Ludwig m...@as-guides.com: Does anyone know the name of the Tomcat adapter feature? Or a URL to download the feature? It should be JST Server Adapters And that's exactly what it is. The thing to note is that you can either install JST Server Adapters from the Galileo release site [1], which I tried and which resulted only in J2EE Preivew, or from the WTP (Web Tools Platform) site [2], which I tried just now and which deploys all Tomcats from 3.2 through 6.0. Thanks Antonio! Michael Ludwig [1] http://download.eclipse.org/releases/galileo [2] http://download.eclipse.org/webtools/updates - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to get thread dump on Tomcat 6 (windows)
Caldarale, Charles R schrieb am 19.05.2009 um 08:37:23 (-0500): From: Gregor Schneider [mailto:rc4...@googlemail.com] Subject: Re: How to get thread dump on Tomcat 6 (windows) A late reply to this: Thread-Dump on Windows: If I'm not mistaken, the key-combination CtrlBreak should do the trick on /most/ JVMs Not when running as a service on Windows. As far as I can see, there are at least three ways to get a thread dump: (1) using the jstack tool; (2) hitting Ctrl-Break in the console (cmd.exe window), even when running as a service (needs the box Allow service to interact with desktop checked to show the console, of course); (3) clicking the icon in the notification area (systray) after launching tomcat6w.exe //MS//, see [1]. Michael Ludwig [1] http://commons.apache.org/daemon/procrun.html - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: UnsatisfiedLinkError in Windows Service (tomcat6w/5w.exe)
Martin Gainty schrieb am 01.02.2009 um 22:42:59 (-0500): saw this in the 2.2.69 readme.txt did you use cscript to config the environment? Version 2.2.69 of what? Anyway, Berkeley DB XML on Windows is built using a Visual Studio project file. cscript configure.js help No such thing in the source tree. Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org