Re: Tomcat in Kiosk mode
Johann; Johann Siegele schrieb: I know that! this was just an example of that what i want to do with tomcat. I want to build a server with tomcat which no user can change. this server should run tomcat, and just my services (servlets), no user should be able to change anything. Considered building an application that does embed tomcat for right this purpose? Quick dump off my ever-growing link list, even though I never managed / needed to try, and it's rather old already...: http://www.onjava.com/pub/a/onjava/2002/04/03/tomcat.html HTH, anyhow... :) Kristian - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
up/download: ClientAbortException?
Folks; stumbled across similar errors already a while ago, most of them seems to have disappeared, but right now some of them seem back in one system: ClientAbortException: java.io.IOException at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:358) at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434) at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349) at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:381) [...] Caused by: java.io.IOException at org.apache.coyote.http11.InternalAprOutputBuffer.flushBuffer(InternalAprOutputBuffer.java:692) at org.apache.coyote.http11.InternalAprOutputBuffer$SocketOutputBuffer.doWrite(InternalAprOutputBuffer.java:722) at org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:118) at org.apache.coyote.http11.InternalAprOutputBuffer.doWrite(InternalAprOutputBuffer.java:528) at org.apache.coyote.Response.doWrite(Response.java:560) at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:353) ... 39 more Things like these happen mainly when users download larger files from a tomcat 6.0.16 proxied by an apache 2.x using mod_proxy/mod_rewrite. Does these messages mean anything to anyone? Really a ClientAbort (in terms of the _remote_ client disconnecting)? TIA and best regards, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why use SOAP in Java
Am Wed, 9 Apr 2008 07:21:29 -0700 (PDT) schrieb Sam Wun [EMAIL PROTECTED]: I am wondering why use SOAP with Java? Since SOAP is based on RPC, I think the best question may be asked, why use RPC for client-server application? Well... let's put it another way: Why not use SOAP and/or RPC for client-server applications? Isn't RMI per definition also sort of RPC if you keep it straight Java? Good thing about doing RPC in a SOAP-like way is that you virtually can create a client-server system without requiring any of the both parts to be implemented in Java, as it is easy to, say, call server-sided Java procedures from a system implemented in Python, .NET, Perl or whatever could come to your mind... Cheers, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: semi-OT: lambdaprobe and logging on tc6?
Hi *; Am Thu, 20 Mar 2008 10:57:20 +0100 schrieb Kristian Rink [EMAIL PROTECTED]: [...] webapp: /xport 04 Mrz 2008 12:05:46 [http-8080-4] ERROR org.jstripe.tomcat.probe.controllers.logs.ListLogsController - Could not interrogate context logger for /xport. Enable debug logging to se e the trace stack 04 Mrz 2008 12:05:46 [http-8080-4] DEBUG org.jstripe.tomcat.probe.controllers.logs.ListLogsController - java.lang.NoSuchMethodError: org.apache.catalina.Context.getLogger()Lorg/ap ache/commons/logging/Log; To add to this: Building a simple project just using one servlet, log4j and no commons-logging, I have found that everything works perfectly, the log file shows up in lambdaprobes log browser, no issues so far. But isn't commons-logging just a wrapper around log4j and/or other logger implementations? Somehow this kind of behaviour is sort of confusing me Can anyone get my mind right on that again? :) TIA and best regards, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
semi-OT: lambdaprobe and logging on tc6?
Folks; earlier some kind souls on this list recommended me to check out lambdaprobe.org to fulfil my tomcat management and monitoring needs which has worked out rather well ever since. So far however, it seems something got more or less broken in course of migrating our systems from tc5.5 to tc6.0: Right now, using lambdaprobe, I can't browse my applications log files (commons-logging + log4j) anymore - which is bad as this is the main feature I needed about probe. Raising probes debug level provided me with something like that: 04 Mrz 2008 12:05:46 [http-8080-4] DEBUG org.jstripe.tomcat.probe.tools.ApplicationUtils - Querying webapp: /xport 04 Mrz 2008 12:05:46 [http-8080-4] ERROR org.jstripe.tomcat.probe.controllers.logs.ListLogsController - Could not interrogate context logger for /xport. Enable debug logging to se e the trace stack 04 Mrz 2008 12:05:46 [http-8080-4] DEBUG org.jstripe.tomcat.probe.controllers.logs.ListLogsController - java.lang.NoSuchMethodError: org.apache.catalina.Context.getLogger()Lorg/ap ache/commons/logging/Log; Knowing this is not a lambdaprobe list and knowing that, posting this message to the lambdaprobe forums, I just recieved a few hundred reads but no comment on that very issue so far, maybe posting this here is not rather helpful, but however: In case anyone is using that very setup (tomcat6.x, lambdaprobe 1.7b, commons-logging, log4j) and has this things fixed and/or knows about that error, feel free to drop me a line. Bunches of thanks in advance, best regards. Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat6 installation
Melanie; Am Wed, 9 Jan 2008 10:48:10 + (GMT) schrieb Melanie Pfefer [EMAIL PROTECTED]: export JAVA_HOME=/usr/local/java/j2sdk1.4.2_08/ export JRE_HOME=/usr/local/java/j2sdk1.4.2_08/jre/ [...] java.lang.UnsupportedClassVersionError: org/apache/catalina/startup/Bootstrap (Unsupported major.minor version 49.0) tomcat 6.x requires JRE/JDK to be at least 5.0... Cheers, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why use a Web Server over Tomcat?
Bárbara, Am Tue, 8 Jan 2008 11:13:34 - schrieb Bárbara Vieira [EMAIL PROTECTED]: [...] Why thats happen? Why we have a Web Server over another Web Server, if the low-level Web Server is capable to do everything alone? To give you an example: We do use a set of tomcat machines (four nodes, currently) to carry our enterprise application, having an apache web server in front of those to do load balancing / failover clustering. Asides this, while tomcat and friends (servlet containers) are made to serve up, well, J2EE web tier applications, web servers like apache2, lighttpd, ... are usually better at serving static content (images, static css files, html documents that don't contain any logic, ...). And, to add another point: Maybe your choice of technology is not limited to J(2)EE but also does include PHP, Python, Perl (be that in applications of your own and/or in some content management system to serve your company web site), this is what you usually want to have a non-J2EE web server for. :) Cheers, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why use a Web Server over Tomcat?
Bárbara, Am Tue, 8 Jan 2008 13:53:11 - schrieb Bárbara Vieira [EMAIL PROTECTED]: I understand your perspective. But, my question is about security. Why systems banks use an IIS Server instead of an Apache Server over a Tomcat Server(or some servlet container) [...] For what I have seen about online banking systems around here, some of them do use an IIS to do their web hosting (eventually by making use of some internal CMS to actually include/edit content) but the actual banking solution they do use is a J(2)EE application in some app server. In such a scenario, they are required to somehow create an integrated environment (with a behaviour seamless to the user), to somehow linking, say, IIS and the J(2)EE app server / servlet container. I understand the fact that systems uses a Web Server over another to serve static content. But if in my application all content is closed, i.e., every client that wants to accede to that content must be authenticated and that authentication is controlled by Tomcat. There's more to security than just authentication. In our environment, the tomcat installations are on production servers in our LAN fully accessible to our internal users desktop clients (including some more services for document / file access), and external access (from the outside internet) is done via an apache2 reverse proxy living in a DMZ segment. This way, I can keep people from directly accessing my productive systems, which is helpful to say the very least. ;) Cheers, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] webdav client libraries for Java?
Folks; sorry for the OT: Being into building a WebDAV enabled application based on tomcat, I am so far trying to find a way how to programmatically interact with the WebDAV using some kind of Java webdav library - but which one? As far as I have seen so far, there is next to no working, up-to-date Java WebDAV client library: - Jakarta Slide seems to have been retired a while ago, the jackrabbit implementation doesn't provide a _generic_ webdav client. - commons-vfs has webdav supported as sandbox component for quite some aeons by now it seems. - SkunkDAV just doesn't work, constantly throwing NPEs, and it's rather old (2001) either. So... does anyone of the kind, wise people out here know a better way how to interact with a WebDAV server from within a Java application? Is there any way how to programmatically access, modify, add, remove files from/to WebDAV without manually crafting a WebDAV client on my own on top of some HTTP client lib? Thanks in advance and best regards, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] applets in webapps
Folks, slightly OT: can someone provide me with a few good pointers and/or hints how to correctly integrate a Java applet into a JEE based web application? More specifically, my problem is something like that: I do have a .jsp containing code to show an applet. Both applet .class and some other resources (.properties files, images, ...) do live inside a .jar file in the same folder as the .jsp. Unfortunately(?), the .jsp is never called directly but rather forward()ed to from within a servlet mapped to some specific URL. So, the situation is that - while calling the .jsp directly (using http://host/context/real-path-to/file.jsp ), the applet loads and runs the way it's supposed to, but - while having the resource called the way it's supposed to (using http://host/context/mapping-for-servlet-forwarding-to-jsp/ ) the plugin doesn't load but provide me with ClassNotFoundException, obviously not capable to find the applet class. Tried playing around with the applets archive / codebase parameters made things just slightly better: By now the browser does lock up, the applet class seems to get loaded, but obviously fails to load some resources, and I see strange access attempts in my tomcat log, trying to fetch resources like /context/servlet-mapping/classpath/lang/de_DE.properties (the file originally lives inside the applet.jar in classpath.lang). Is there any sane way of keeping applets inside a JEE web application, regardless on whether they're invoked directly from a .jsp or from a resource forwarded to from within some servlet? Or am I just too stupid? Sorry again for the OT, feel free to contact me off-list in case you feel like providing me with some hints / pointers. Thanks loads and best regards, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] applets in webapps
David; first off, thanks loads for your hints; much appreciated. :) Am Tue, 09 Oct 2007 05:54:16 -0400 schrieb David Smith [EMAIL PROTECTED]: Let's say the servlet serving up your applet and resources is mapped to /appletRes in your webapp. The jsp could then access ${request.contextPath}/appletRes/resources/applet.class or what ever. The client browser would then request the applet/resources separately and the companion servlet would find resources/applet.class in your jar file. Thought about something like that already, as well. However I am unsure whether it would work out, given that, in our case and looking at what the applet does, we need to have it digitally signed and packed to a .jar because of that. Won't using a servlet to provide these resources from within the .jar file make this sort of providing a signed applet impossible? Cheers best regards, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.23 dont start...
Iuliana; Am Fri, 14 Sep 2007 08:47:35 -0300 schrieb Iuliana [EMAIL PROTECTED]: Then, in the 'conf/server.xml', I change the connection port from '8080' to '8090', after, change the shutdown port from '8005' to '8015' and nothing happend. Did the same error show up after changing tomcat to listen on another port? I just see in ps -a, ps -ax, nmap localhost and anyone is running other application in the tomcat port. Recently I remove tomcat server and install again but nothing happend. Well a common reason for that indeed is that some other application (web proxy?) is keeping the port occupied. What does netstat -ap|grep 8080 say? Any chance identifying the process using port 8080? Cheers good luck, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.23 dont start...
Am Fri, 14 Sep 2007 13:54:25 +0200 schrieb Kristian Rink [EMAIL PROTECTED]: netstat -ap|grep 8080 Sorry, should look closer before typing: netstat -anp|grep 8080 ; otherwise chances are you'll not see anything because netstat replacing 8080 with webcache... ;) Cheers, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.23 dont start...
Iuliana; Am Fri, 14 Sep 2007 09:20:03 -0300 schrieb Iuliana [EMAIL PROTECTED]: Yes Kristian, I get the same error after changing tomcat port. When I put netstat -apn|grep 8080 before start tomcat in console, I have not process using port 8080. What about the other ports used (8005, 8009)? Any netstat output here? You also wrote you earlier reinstalled tomcat... Can you be sure there's not a broken tomcat process running on your machine? Do you have some strange firewall (setup) in place on your host? Honestly, I can't right now think of another reason than the port already being locked because that's pretty much what the exception is all about. ;) How does the rest of catalina.out look like? How could I Know when netsat replace 8080 with webcahe? Can I remove this cache? That was my fault. ;) Using netstat without -n makes netstat print the service name as to te found in /etc/services (webcache) rather than the port (8080). It's, however, just a matter of what gets displayed, this doesn't change anything about your running services. ;) Cheers, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ClientAbortException / Broken Pipe?!
Frank; first off, thanks a load for your reply, much appreciated. [Frank W. Zammetti [EMAIL PROTECTED] @ Tue, 14 Aug 2007 11:02:42 -0400 (EDT)] Have you noticed if this affects IE users and Firefox users equally? I ask because there's a known issue (that I've never seen an actual answer to) where IE causes these exceptions frequently with no ill effect to anything (other than the overhead of handling the exception in the VM on the server). I am not sure on that, gonna check that in order to see whether or not you're about to get your box of donuts. ;) However, seriously this is a rather bad thing as I am convinced most of our users to possibly make use of a default web browser on their system, having no idea what a browser is, at all... On the other side, having the file transmission terminated / corrupted surely isn't what I would call no ill effect... ;) Does anyone have a smart idea how to compensate for this issue? Thanks in advance and best regards, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ClientAbortException / Broken Pipe?!
Ronald; [Ronald Klop [EMAIL PROTECTED] @ Wed, 15 Aug 2007 09:56:59 +0200 (CEST)] ClientAbortException means the user canceled the download (the 'client aborted'). There is nothing you can do about that on the server. I thought so. However, there are two things: (a) I was unsure whether, in a proxied environment, a ClientAbortException means download canceled by the actual (external) client or by the proxy server (which is directly accessing the backend tomcat). (b) In none of the cases I watched so far, some user consciously / actively stopped a download in progress - all reported that either the download finished but ended up with an empty / small / corrupted file or an error message showed up - or nothing happened at all. :( I am not really sure who's to blame for that... :/ Thanks for your help, nevertheless, and best regards, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ClientAbortException / Broken Pipe?!
Folks; still messing around with an error like this: In our system, we offer customers a service to download files using a servlet. Some weeks ago (more or less when I considered switching to tomcat 6.0), the following error frequently started to show up in my log files: ... java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:537) at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:127) at org.apache.jk.core.MsgContext.action(MsgContext.java:302) at org.apache.coyote.Response.action(Response.java:183) at org.apache.coyote.Response.finish(Response.java:305) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:205) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:619) 14.08.2007 15:38:34 org.apache.jk.common.ChannelSocket processConnection WARNUNG: processCallbacks status 2 ... whereas I see a ClientAbortException caught by my applications exception handling mechanism. So far, I haven't been able to track this down, that's why I am kindly asking you for your skilled advice. What did I do so far trying to get hold of this: - Tomcat runs on a machine in the LAN, fronted by an apache2 httpd. - The error does appear both running tomcat 6.0.13 and 5.5.23. - I initially was using mod_jk 1.2.29 and switched to mod_proxy and Proxy/ProxyReverse setup just to make sure, and the error appears no matter whether using mod_jk or mod_proxy. - Right now, I am using apache2 prefork mpm, played around with different mpms just to be sure it's not an error related to apache2 itself, but this also didn't really change anything. - apache2 logging doesn't show any messages whenever such a ClientAbortException is thrown. - Customers, however, reported that whenever such a situation happened, the files downloaded were either 0k sized or corrupted. And I'm whole-heartedly clueless by now :( Is there anything I forgot to double-check? Using the latest JDK, no tcnative, running Ubuntu Linux 6.06.1. Applied pretty much every solution attempt I could come up with using google, including tweaking the HTTP connector setup in server.xml, removing tcnative, using mod_proxy instead of mod_jk - no success. Does anyone around here have any more ideas on how to get hold of this? Thanks loads in advance and bye, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 6 and setenv.sh?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Folks, after switching our production environment to tomcat 6.0.13, most of the things work fine again by now. One thing, however, is still giving me headaches: By now, I used to have something like export CATALINA_OPTS=-server -Xmx512m ... in CATALINA_HOME/bin/setenv.sh (running Linux), which worked fine with tc5.5.23. However, by now having settings like these in setenv.sh, I just end up with this message... WARNUNG: Dynamic setProperty(className,value) has been disabled, please use explicit properties for the element you are trying to identify 03.08.2007 09:50:36 org.apache.catalina.core.AprLifecycleListener init INFO: Loaded Apache Tomcat Native library 1.1.10. 03.08.2007 09:50:36 org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. ... in catalina.out while tomcat refuses to start up correctly. Does anyone have an idea what the problem is like? Is setenv.sh not supported that way anymore in tc6.0? Is there a better way to do these settings? Environment: - - Ubuntu 6.06.1 LTS - - JDK 1.6.0-b105 - - tomcat 6.0.13, cluster-configured with two hosts Thanks in advance for any hints and bye, Kristian - -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGst+xcxBAPOA1m6wRArfIAKCmMRY3GGc90o6q2NVHHAhyNxMUewCfQ9Yu GdjSLPYqmAfRRMibc/VRXqg= =s7UW -END PGP SIGNATURE-
Re: Apache Tomcat 5.5 install issues.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 William; [William Rui [EMAIL PROTECTED] @ Fri, 3 Aug 2007 15:43:18 +0800] ... [EMAIL PROTECTED] bin cd jsvc-src/ [EMAIL PROTECTED] jsvc-src autoconf [EMAIL PROTECTED] jsvc-src ./configure -bash: ./configure: Permission denied First bet would be that configure is not actually marked as executable, try either sh ./configure or do a chmod u+x configure prior to running ./configure to move on. Cheers, Kristian - -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGsuKBcxBAPOA1m6wRApH4AJ4+ox35fpsgMPBvC3e+pKMcWUB9PgCgjn3I ATlUyJUqLeO4Xv074eTo59Y= =7mGT -END PGP SIGNATURE-
Re: Apache Tomcat 5.5 install issues.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 William; [William Rui [EMAIL PROTECTED] @ Fri, 3 Aug 2007 16:19:17 +0800] *** Host support *** checking C flags dependant on host system type... ok *** Java compilation tools *** checking for javac... NONE checking for javac... NONE configure: error: javac not found There could be two things causing this issue: (a) You don't have a JDK installed but just a JRE which, well, just provides the features required to run Java application but actually lacks everything required to build Java apps from source. Solution would be to install an up-to-date JDK. (b) you don't have your PATH set up so your shell can't find javac. To set this right, best is putting something like this to your shell configuration file: export JAVA_HOME=/path/to/your/jdk export PATH=$JAVA_HOME/bin:$PATH (assuming a bash-like shell). By the way you can check pretty well how things are by trying to manually entering java or javac in your terminal, or by using which java which javac to locate where these friends are. Maybe, however, you'll be better / quicker off installing a pre-built tomcat binary. :) Cheers, Kristian - -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGsueWcxBAPOA1m6wRAjF9AJ92sDDUMX4+rLplBn7GNtxvS2j2JQCdE4yk Psy9OUqGng9xy3pXOdKFaVM= =woaR -END PGP SIGNATURE-
Re: Error reported when starting app in cluster
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Derek; [Derek Alexander [EMAIL PROTECTED] @ Fri, 3 Aug 2007 07:22:21 - -0700 (PDT)] 2007-08-03 15:13:25,853 60093 [main] ERROR org.apache.catalina.cluster.session.DeltaManager - Manager [/123/456/789]: No session state send at 03/08/07 15:12 received, timing out after 60,086 ms. Does this application run well in a tomcat that isn't clustered? Does your application have the distributable/ element in web.xml? Having gone through something like that as well, a while ago, I'd recommend looking through the output in the other log files in $CATALINA_HOME/logs/, especially localhost, to see whether there are any exceptions / errors reported that might keep your application from comin' up well. Cheers, Kristian - -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGszuDcxBAPOA1m6wRAo05AKCZQ+EWwJTI9ISGk8jIRdMbV6Y+yACdER5a HkVUqUrLOHsDQPfpb7x94J8= =qr33 -END PGP SIGNATURE-
Broken Pipe?
Folks; a few days ago, on one of our tomcat servers catalina.out started filling up with messages like this: 25.07.2007 08:16:43 org.apache.jk.core.MsgContext action WARNUNG: Error sending end packet java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:531) at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:121) [...] org.apache.jk.common.ChannelSocket processConnection WARNUNG: processCallbacks status 2 Looking to my own applications log file, I can see which is the servlet to cause this error (ClientAbortException), but I am not at all sure why it started showing up all of a sudden. Reading that it's actually a ClientAbortException, should I not worry about it and leave things movin' on as they do? Or is this some more severe issue that needs to be adressed? Environment: - tomcat 6.0.13 behind an apache2 / mod_jk 1.2.23 - jdk 1.6.0 - Ubuntu Dapper server TIA and bye, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat virtuelle server
Hi there; [Natursprung [EMAIL PROTECTED] @ Wed, 25 Jul 2007 11:14:16 +0200] ... i want redirect 2 different DNS-names to one Tomcat on one server. The DNS-names has 2 different destinations inside the webapps-directory. We can´t not insert the whole path in the dns, so i need a other sulution for my problem. ... I'd go for using apache2 for doing the virtual host stuff and mod_jk for linking it to your tomcat installation, this should make your desired setup rather straightforward. In example, see here http://www.howtoforge.com/apache2_tomcat5_mod_jk for more. :) Cheers, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat cluster and maven2?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Folks; still all along considering switching our application environment to tomcat6, I wonder whether there is a meaningful way of deploying a web application to multiple tomcats / a tomcat cluster using maven2? FarmWarDeployer still seems not working in tomcat6, and aside that I also would enjoy seeing to have this switched off and not regularly polling my server filesystem. Hints, anyone? TIA and bye, Kristian - -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGoHDtcxBAPOA1m6wRAr0tAJoChJaiu98/k3Wl+Ly8uIn8tk+qOwCfaKJ+ t87wdJk/CaI6DE5C2Fyf/RY= =eAfH -END PGP SIGNATURE-
clients behind nat/masq: sessions mixed up?
Folks; dealing with quite an annoying problem right now: One of our web applications (running inside a tomcat 5.5.20 cluster spread across two machines behind an apache2 / mod_jk frontend) seems to act strangely in some situations: Most of the times, the application works rather fine. However, it seems that in some(?) cases when clients working in a LAN connected to the Internet using NAT or Masquerading (i.o.w.: comin' from the same public IP address), their sessions get sort of mixed up, leaving one user seeing the wrong data, suddenly also obviously being authenticated as someone completely else who's working in the application, on a different computer but just within the same network. On one side, this is something rather important to me as providing users access to the wrong data isn't to be considered a good thing. Other side, however, I don't at all know how on earth this could happen - for what I see, the application uses either a cookie (stored on the client side) or a JSESSIONID (also just available on the client side) so having these things mixed up should be virtually impossible... shouldn't it? I am aware that this also might be application-specific. However, does someone of the kind folks around here feel like pointing me some places where to look, here, to get this sorted out? TIA and bye, have a calm weekend everyone Kristian - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat5.5 Ubuntu startup error
Will; [Will Parkinson [EMAIL PROTECTED] @ Fri, 8 Jun 2007 16:35:45 +1000] Hi Zdenek I have JDK 6.0 installed (from this url http://java.sun.com/javase/downloads/index.jsp) Ubuntu comes preinstalled with GNU classpath and friends so no matter whether or not you install an additional JDK, the preinstalled GNU Java always will be first to be found. An easy solution to fix this (at least this is how I do it by now, on several machines) is to set JAVA_HOME and PATH to something like this: export JAVA_HOME=/opt/java export PATH=$JAVA_HOME/bin:$PATH Prepending the $JAVA_HOME/bin to $PATH helps here because, by then, the java(c) commands provided by the JDK are to be found first (and used, by then - otherwise the GNU Java that comes with Ubuntu will be used no matter which JDK you do have installed). As an alternative, of course, you might want to install the sun-java stuff from Ubuntu multiverse... ;) Cheers, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Embed license to tomcat
[Li [EMAIL PROTECTED] @ Fri, 8 Jun 2007 15:29:45 +0800] Our company is going to deploy a system externally. In order to prevent illegal deployment by our customer to other tomcat in case. Why do you want to keep people from deploying your application to another tomcat installation? Do you want to keep them from running pirated versions of your software, or do you rather need the application to be run in a tomcat setup completely configured by and thus (in case of support questions) known to your company? If the latter applies, maybe you'd be better off having a contract stating loss of any warranty and/or support in case the application is run inside a non-certified environment. Surely this is not a _nice_ way to do things but it seems to be a common practise so obviously customers are willing to accept things like that. Otherwise (if you intend to keep people from pirating your software), you possibly should give up on software development and do something else. Trying to protect software from pirates (I hate this term, but that's just my $0.02...) is something software industry has been doing at least for the last two decades, and by now all mechanisms and ideas to do so seems to have completely failed. You won't come up with a reliable software-based solution to keep your customers from running illegal deployments of your software. Period. You might consider asking them to use a hardware dongle solution to at least tie a tomcat/app installation to a given host (don't know whether there are Java interfaces to access these things, but I guess so...). Anyhow, a better way in my opinion would be to give away the software for free (or charging money for it, as you like, but without wasting time / energy on trying to keep people from copying it) and make sure users will get back to you in order to actually _run_ the software. What application are we talking about here? You know, we're a proprietary DMS as an in-house solution... the software itself is not free but rather inexpensive compared to the amount of money you have to spend on adapting the rather generic solution it provides to the very special needs of your business... If this is somehow applicable to your software, I guess it would be the best way... Cheers, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Embed license to tomcat
David kerber schrieb: ... hardware failures won't cause problems. If they move to a completely new machine, but you politely post a nag screen that says something to the effect New hardware detected; please contact Mycompany within 30 days for a new license, then that's not likely to offend many customers. Depends, I guess... Actually, our DMS vendor used to have its licensed coupled to several aspects of the hosts network configuration (MAC, IP address, DNS name), and they dropped this very idea already a bunch of years ago - it's annoying for honest customers, it generates unnecessary maintaineance work, and, most notably, in the age of virtualization it's possibly pointless. We run tomcat nodes that live inside different VMWare ESX (or Virtual Infrastructure as they call it by now...) hosts. No matter what actually happens to the physical hardware - the machines inside are likely to stay the same. You can have the same thing running VMWare Server free of charge on modest x86 hardware and will smoothly make your way 'round any machine-tied licensing mode... You could also have it phone home once a day (or once a week, or whatever) with an app's internal key value, and if you get two connections from the same ID value, then you know there are multiple copies running. No. From a customers point of view, I simply wouldn't deploy such an application, at least not in the enterprise market. Bad enough knowing most desktop software is likely to phone home, the very moment our network monitoring would capture any of these server-based applications establishing unwanted connections to some external site would be end-of-life for this application in our environment. Having an application phone home drastically reduces trust in this very application especially if it is meant to keep track of sensible business information. This IMHO is a way that should be strictly discouraged... just my $0.02 on that... Cheers, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java-Ecommerce
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Samuel; [Asare Samuel [EMAIL PROTECTED] @ Tue, 5 Jun 2007 05:29:46 -0700 (PDT)] 1)Just wondered if there is already a interface for this already. There is a bunch of online shopping solutions out in the wild, most of them proprietary and/or expensive (I wonder whether there are any usable open-source JEE based web shops out there?) 2)Also how do i go about creating the actual money transactions? Do I use paypall. This is likely to be part of either what the shop system you will make use of offers, or part of your specifications of what your shop system is likely to do. 3)How do you prevent double purchasing-eg one product in stock-user1 is the first to put it in cart but continues to shop. User2 comes along and puts same product in cart but goes to checkout quicker. I know you could edit the stock level as soon as a product You could go with more than two different states per item in your stock (available, reserved == someone put it in its cart but hasn't checked out yet, sold or something like that). Of course, you have to be sure to handle these states in a meaningful way, i.e. take care to expire product reservations after a sane amount of time has passed (to deal with people who fill up their cart but never actually check out and/or buy anything...). Are you about to build a system like this? If so, how much of the specification / design work did you do so far? Cheers, Kris - -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGZVmGcxBAPOA1m6wRAsFyAJ9PsNQcrzSIx2aSlYb1jiDFabl+3QCfXqKb yZTHiSsRPIP187OzKGQPHQQ= =SOrq -END PGP SIGNATURE-
tomcat 6, clustering, FarmDeployer
Folks; being knee-deep into building a test system to see whether our clustered applications also will work in a tc 6.0 clustered environment (currently they run atop 5.5), and the cluster configuration (having an apache2+mod-jk in front) seems to work well having an application that already runs within the tomcat setup. However, the FarmDeployer doesn't seem to work here. Deploying a war file to /opt/appsrv/tomcat/tmp/war-listen/ provides me with the following messages in catalina.out ... - ... on the machine the war file was deployed to: 31.05.2007 14:56:58 org.apache.catalina.ha.deploy.WarWatcher check INFO: check cluster wars at /opt/appsrv/tomcat/tmp/war-listen 31.05.2007 14:56:59 org.apache.catalina.ha.deploy.FarmWarDeployer fileModified INFO: Installing webapp[/pcdvisual] from /opt/appsrv/tomcat/tmp/war-deploy/pcdvisual.war 31.05.2007 14:56:59 org.apache.catalina.ha.deploy.FarmWarDeployer remove INFO: Cluster wide remove of web app /pcdvisual 31.05.2007 14:56:59 org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor report INFO: ThroughputInterceptor Report[ Tx Msg:1 messages Sent:0,00 MB (total) Sent:0,00 MB (application) Time:0,09 seconds Tx Speed:0,01 MB/sec (total) TxSpeed:0,01 MB/sec (application) Error Msg:0 Rx Msg:1 messages Rx Speed:0,00 MB/sec (since 1st msg) Received:0,00 MB] 31.05.2007 14:57:27 org.apache.catalina.ha.deploy.WarWatcher check INFO: check cluster wars at /opt/appsrv/tomcat/tmp/war-listen - on the other node in the cluster: 31.05.2007 14:56:56 org.apache.catalina.ha.deploy.FarmWarDeployer messageReceived SCHWERWIEGEND: javax.management.RuntimeOperationsException: Exception occurred trying to get an MBean 31.05.2007 14:57:05 org.apache.catalina.ha.deploy.FarmWarDeployer messageReceived SCHWERWIEGEND: javax.management.RuntimeOperationsException: Exception occurred trying to get an MBean So far, I am using the example tc cluster configuration according to [1]. Environment is Ubuntu 6.06.1 + JDK 1.6.0 on both hosts. Somehow I suppose that this is just a simple misconfiguration but right now I don't know where to lay my hands to get it resolved. Can anyone help me outta here? Thanks in advance and bye, Kristian [1] http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 6, clustering, FarmDeployer
Filip; first off, thanks loads for your hint. So by now I can at least stop playing with the FarmWarDeveloper and focus on other things... [Filip Hanik - Dev Lists [EMAIL PROTECTED] @ Thu, 31 May 2007 15:44:59 +0200] hi Kristian, Farm deployer is currently broken, has been for a while and needs to be completely revised. Is there another meaningful way of getting an application deployed to a tomcat cluster, then, without having to deploy it to each and every node? Though this wouldn't be much of a pain (given there just are two nodes right now... :) ), it at least reduced comfort and ease-of-use compared to the FWD solution... Thanks and bye, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
deployment / war unpacking and Context definition?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Folks, feeling kinda ashamed asking such a (probably rather basic) question, but nevertheless: By now, I only built applications packed to *.war files and then thrown to a tomcat /webapps/ folder, which obviously made / makes tomcat redeploy the application - so far, so good. However, in order to get a JDBC resource set up and running, I added a context definition like this ... Context path=/jdbclink reloadable=true ... Resource name=jdbc/SQLDB auth=Container ... / ... /Context ... and then dumped in a jdbclink.war file. Deployment works fine the very first time, and then never again. :o Even worse, removing the webapps/jdbclink/ folder while the container is running doesn't make tomcat unpack / redeploy the .war file. Likewise, even placing a new war file in webapps and restarting the container doesn't do - I have to stop tomcat and manually remove the unpacked web application in webapps to get the war redeployed again. Haven't messed with any other settings so far, the Host declaration looks like this... Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false We're talking tomcat 5.5.20 atop Ubuntu/JDK 1.6 here. Can anyone enlighten me why in this configuration tomcat doesn't redeploy the application when having a new war file dropped to webapps (by removing the Context definition from server.xml, this does work again...)? It's not all _that_ bad the way it is now, but having to shut down tomcat and manually remove the webapp to get it redeployed is not that fine on a production system running more than just that very application. :) Thanks in advance and bye, Kristian - -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGMJBJcxBAPOA1m6wRAsJjAJ9HigISz9g/4YdZ1Mv2rw+7EBt21wCbBGp+ myjQt53ccWBHayGdXzCiG5U= =fKcF -END PGP SIGNATURE-
Re: deployment / war unpacking and Context definition?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck; first off, thanks for the reply. [Caldarale, Charles R [EMAIL PROTECTED] @ Thu, 26 Apr 2007 09:36:38 -0500] Context path=/jdbclink reloadable=true Where is the above Context declaration? If it's anywhere other than in server.xml (where it shouldn't be), the path attribute must not be present. It lives inside the Host definition in server.xml, according to the example pointed out in http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html - - I already played around with adding and removing attributes like path and docPath without any obvious change for the better. Is there a better way to set this up? removing the webapps/jdbclink/ folder while the container is running doesn't make tomcat unpack / redeploy the .war file. Deleting arbitrary files out from under a running process is just asking for trouble. What happens if you redeploy using an appropriate mechanism, such as Tomcat's manager app or Ant scripts? I will have a look at the manager application then. By now I just deployed using the export-to-war facility of eclipse and relying upon tomcat to deploy the application as soon as the new war is there... ;) Anyhow, thanks and best regards, Kristian - -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGMLtccxBAPOA1m6wRAqZfAJ9twgr0thlgQRjsYtTour5o+I5ceACfcP71 mm+OTHAkncA/587mUJBlufw= =O2Ld -END PGP SIGNATURE-
Re: deployment / war unpacking and Context definition?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck; [Caldarale, Charles R [EMAIL PROTECTED] @ Thu, 26 Apr 2007 09:56:45 -0500] changes are required, which is why it's strongly discouraged these days. The Context element should be defined in META-INF/context.xml within the webapp structure; alternatively, it can be placed in Thanks for pointing this out - this seems to have solved it, by now the .war both deploys again and the datasource is there for the context to use. Good to know getting it done this way is better (indeed messing with server.xml and restarting the container afterwards is a bad thing most of the time). Thanks for your help and bye, Kristian - -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGMMBWcxBAPOA1m6wRAiLHAJ93e0TfUCHC0LqTkDHjh94lH2IoYwCeLsIf aRhUOdZppg5nrdlIjJ61kCo= =6vlB -END PGP SIGNATURE-
switching to 6.0 - considerable things?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Folks; as there is a stable 6.0 release right now, I consider making use of it for at least part of our internal environment. Rationale for that: - - Not having to install a JDK on the server machines seems a good point to me. - - I want to make use of the JEE 1.5 web tier as soon as possible without being required to use glassfish everyhwere. - - I want to have an eye on technology as it moves forth, and since most of the relevant applications used internally are self-made, we're not forced to stay with any old environment. By now, I just dumped one of our WAR archives to tomcat 6.0 and found it working out of the box, except for minor annoyances (most notably my application's log file not being where it was in 5.5). So, short question: What things should be taken into consideration while moving from tomcat 5.5.20 to 6.0.x? Is there sort of a migration HOWTO for this situation, or is it just rather straightforward, having backward-compatibility and a set of new features around? TIA and bye, Kristian - -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGEe2hcxBAPOA1m6wRAm1cAKCUrnbsJz7atVqMLFLcwKWlkHFu2gCeLB96 yHO3Av/Npx1meSdrDsGsiHg= =XIf1 -END PGP SIGNATURE-
Re: switching to 6.0 - considerable things?
Rainer, @list; first off, thanks everyone for your hints / inspirations, much appreciated. :) Rainer Jung schrieb: new and not inside the tomcat 6 docs. The Guide is very short, but might give you some ideas. http://tomcat.apache.org/migration.html Indeed, I could have found that myself if I only looked close enough. :) Thanks for pointing my way there, I'll see how things will end out. Thanks everyone and bye, Kristian - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: GUI implementation with tomcat
Alicia; [Alicia Sánchez-Mora [EMAIL PROTECTED] @ Thu, 8 Mar 2007 15:05:09 +0100] I have the class Window to initialize the GUI and I call (locally) an instance of this class from my service class. The problem, or at least what I think the problem is, is that every time I make a call the service container unloads my class and nothing (related to my window) is initiallized. The idea is to run my window only one time, when tomcat starts. To do that I should specify somehow on the web.xml file to do this: write a jsp class, put it somewhere and call the initialization of the window.. honestly, the architecture of your overall application by now seems somewhat obscure to me. What exactly do you intend to do? Is the window supposed to display the web service calls actually supposed to be a _desktop application_ window or rather an HTML page rendered by some JSP? If you want to build a GUI, probably you will have to build something like that: * Web Service and related classes deployed to a tomcat application context making use of axis and friends, and * GUI application, built as a standalone Java application making use of Swing(?) to render a GUI and using web service client classes to do remote calls. Can you be more verbose about your application architecture? :) Cheers, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: GUI implementation with tomcat
Alicia; first off; thanks for your explanation and pointing things out a little more. :) I think I slightly understand the structure of your application but honestly I doubt it will work out this way: [Alicia Sánchez-Mora [EMAIL PROTECTED] @ Thu, 8 Mar 2007 16:24:33 +0100] public class ListItems { List listOptions; private static ListItems instance; private Frame f; This is java.awt.Frame, isn't it? In my opinion (list people feel free to correct me if I'm all too wrong here), the issue with your application is that you try to instantiate and access the java.awt.Frame object from within code running on your server but you actually want it to appear and work on your client. This is not going to work out. To do so, you need to have the client code (containing the Frame stuff) run locally on the client - the fact that some window does actually appear is likely due to that server and client runs on the same machine in your setup. To achieve the desired effect, you should really try separating the web service and the window connecting to it into two different, separate applications (a webapp hosting the service, and a desktop application or an applet running the window/frame). Then, you need to implement logic in your client to remotely call the web service and possibly get some meaningful data from it. Don't know if this really is a helpful answer, feel free to ask if you need more assistance. :) Cheers, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
reasonable session size?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Folks; not sure whether this is too much a tomcat-related question, but at least it relates to Java based web applications so hope someone around here might have an idea on that: While building a Servlet/JSP based intranet application, quite late I realized that somehow just adding new objects / data to the HTTP session, say, is something so easy one makes excessive use once getting acquainted to it. However, thinking about these information being stored somewhere on the server, the idea of performance impacts due to sessions way too large is the next thing to think of. So, to ask: Are there any reasonable maximum sizes for HTTP sessions in general and/or objects attached to a session? What is the maximum session size you would accept before considering rewriting large parts of your application to reduce session size, i.e. by introducing a smarter architecture? Is there any actual use in making _general_ statements here, or is this more likely to be application-dependent and a matter of having server hardware built to meet the needs of the application? What do you think? Thanks in advance and bye, Kristian - -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFF5UxocxBAPOA1m6wRAvDUAJ9q7P7uMcAPkWN6oWMCy9reBqwk/ACgpWuH p9dw0PGHuEDSmXGFLoBzTk4= =xHjb -END PGP SIGNATURE-
tomcat: jmxremote and catalina.sh
Folks; in order to have remote management and monitoring enabled, I do start our tomcat 5.5.20 installations using CATALINA_OPTS like this: -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8086 So far this works good, only problem left to solve: This way, I can't stop my Unix-based tomcat services using catalina.sh anymore, getting a connection refused for port 8086 (or whatever value I set jmxremote.port to). So. Does Using JMX remote access render catalina.sh useless? How can I get out of this and have both things running? Thanks in advance and bye, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: clustering and jvmRoute
Rainer; at first, thanks for your hints and getting my view on the world set straight again. ;) [Rainer Jung [EMAIL PROTECTED] @ Fri, 23 Feb 2007 09:32:59 +0100] But: with stickyness (different jvmRoutes and a session sticky load balancer) you only rely on the correctness of the replication when a node actually fails. Since replication takes a little time and is very difficult to implement, that's the better strategy. This seems reasonable. However, in terms of load balancing, I wonder whether there are any benchmark / comparisons on that: - Using stickiness, I ensure each request of a session to run on the host the session initially was started upon. This way, the session is the most fine-grained way I can provide load balancing, but I possibly don't have to spend that much (development, runtime) resources in order to ensure session replication is always correct. - Not using stickiness, and judging from my environment, I see that I can do load balancing on a per-request base, which seems to be a way more fine-grained approach especially in certain imaginary worst-case situations (given that the duration of sessions can drastically vary). But, however, this way indeed I do have to take at least runtime resources for session replication into consideration. Is there a meaningful approach to comparing these setups in terms of worst-case / average-case performance, or is it simply plain trial-and-error (and possibly some lambda-probe watching)? Thanks and bye, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dynamic JSP include?
Folks; currently I am playing around with something like that in my JSP pages... jsp:include flush=true page=/pages/%= request.getParameter(site)% /jsp:include ... which, as I understand the JSP reference, should be possible. However, it doesn't seem to work right. It actually _does_ work and include the page referred to this way, but it just works _sometimes_, in any other try I get something like this: [...] org.apache.jasper.JasperException: /index.jsp(11,69) equal symbol expected org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) [...] (index.jsp line 11 is the full jsp:include as outlined above). I feel sort of stupid now - having something that doesn't at all work would be easier to handle, but the behaviour of this to work once and not work again the next time is rather disturbing. Can anyone enlighten me here? I also played around with the flush but it doesn't really make things better... Thanks in advance and bye, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dynamic JSP include?
Hi Tim, list; [Tim Funk [EMAIL PROTECTED] @ Thu, 22 Feb 2007 07:30:23 -0500] A few problems: 0) Try page='/pages/%= request.getParameter(site)%' (Notice the use of single quotes - jasper is getting confused by the extra use of double quotes This doesn't work, it seems using single quotes keeps jasper from actually evaluating what's in between them, here. 2) Try validating %= request.getParameter(site)% first in EL so you can say: page=/pages/${param.site} That, however, does it. Even though I'm not completely sure to know why the difference in behaviour, thanks a lot for that hint! :) Cheers, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
clustering and jvmRoute
Folks; yesterday I dealt with the tomcat clustering feature for the first time, getting things basically set up and working in quite a short time (thanks to the documentation which is rather good), and even made my application distributable / the session attributes serializable really fast. However, one thing is massively confusing me: I followed the straightforward approach, reading through [1] where there is a configuration file in a section named Simple Engine Cluster Configuration for all hosts - without thinking twice, I installed a configuration similar to that on both of the nodes of my cluster (including the _same_ jvmRoute parameter on both machines) and it worked - no matter which one of the nodes went down, my session remained alive and well. However, spending some more time trying to study the details and options of clustering, I came across [2] and learnt that the jvmRoute parameter should be a per-host not a per-cluster configuration. Thinking twice about this and its implications on session replication, this seems reasonable, and looking at the log of mod_jk while running both tomcats with the same jvmRoute parameter, indeed I see requests belonging to the same session processed by different nodes (which, if I got the servlet specifications right, shouldn't be). So: Why does this setup, having jvmRoute the same in all cluster nodes, work? Just an undesired side-effect of a broken configuration? Luck? Is there something I didn't yet get about the cluster configuration? Thanks in ad [1] http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html [2] http://tomcat.apache.org/tomcat-5.0-doc/balancer-howto.html -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and Java6
[EMAIL PROTECTED] @ Wed, 31 Jan 2007 13:58:05 +0100] Hello List! is it possible to run Tomcat with Java6 ? I've just tried Tomcat 5.5.20 and it did not start with Java 6. Could you be more verbose about the meaning of it did not start with Java 6? I am running several tomcat machines (both internally and externally available) using Java 6, and so far I haven't had any trouble... Cheers, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and Java6
[Per Johnsson [EMAIL PROTECTED] @ Wed, 31 Jan 2007 14:20:13 +0100] Do you run on windows with the Tomcat Service? Did you do a clean install of tomcat after installing java 6? I have tried both the server and client jvm.dll in both the jre and jdk withouit luck. Ahh, no, our production systems are Linux and Solaris exclusively. Isn't there a way to also run tomcat without the service atop Win32? Just in order to figure out which piece of the setup is actually broken... Cheers, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session Monitoring tool?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck; [Caldarale, Charles R [EMAIL PROTECTED] @ Wed, 17 Jan 2007 09:31:48 -0600] Yes, there is, but the information it provides is rather limited (to telling me how many active sessions there are and what session timeout is set)... Lambda Probe displays more information than Tomcat's manager app, but I don't know if it's sufficient for your needs. Get it at: http://lambdaprobe.org/ [...] You should also take a look at MoSKito; lots of very detailed information collected and displayed by it: http://moskito.anotheria.net/ Thanks a lot for the pointers; I'll check out the both and see what fits my needs best. :) Thanks and bye, Kristian - -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFFtLI4cxBAPOA1m6wRArYDAKCPkWXiMsLBhoRAiLa721PSGRilmgCfRKIr XgEB2Enxh2ZQyjF5M2tcUro= =I0Mh -END PGP SIGNATURE-
Session Monitoring tool?
Folks; does anyone know of any tomcat tool to watch HTTP sessions which are active in any deployed web application (and, best case, data assigned to them, aside the session ID itself)? I thought /manager or /admin to provide functionality like this but so far I failed to find it... Thanks in advance and bye, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session Monitoring tool?
Hi there; and at first thanks for your reply. [Foo Shyn [EMAIL PROTECTED] @ Wed, 17 Jan 2007 16:33:35 +0800] Hmm correct me if i'm wrong, but isn't there's a 'Session' Column in the manager list page where the active session of each web application would be displayed? Yes, there is, but the information it provides is rather limited (to telling me how many active sessions there are and what session timeout is set)... Cheers, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat eclipse integration
[Philippe Le Gal [EMAIL PROTECTED] @ Wed, 17 Jan 2007 11:37:14 +0100] Hi I'm looking for a tutorial of Tomcat 5.5 - Eclipse 3.2 integration. Thanks for any url. I'd go for these two: http://www.eclipse.org/webtools/community/tutorials/BuildJ2EEWebApp/BuildJ2EEWebApp.html http://www-128.ibm.com/developerworks/db2/library/techarticle/dm-0509cline/ Especially the one by the WTP people is pretty much in-depth and should help you getting started in no time. :) Cheers, Kris -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: J2EE option missing in Eclipse environment for Servlet.
athula bogoda schrieb: I install eclipse 3.2 with Tomcat 5.0 to run servlets under J2EE. [...] But in Open Perspective J2EE option is not available. Also Dinamic web Project option also not available. What's the wrong on it. Did you try to run eclipse -clean after installing the plugins? Did you recieve any error messages while goin' through the installation procedure? Cheers best, Kristian PS: As this appears to be a tomcat mailing list and this issue is inherently an Eclise one, the eclise newsgroups probably would be a better place to get helpful answers. ;) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlet Plugins for Eclipse
athula bogoda schrieb: Hi All, Can any one tell how can I download or add plugins for Eclipse to develop Servlet applications. The Eclipse Web Tools Platform (WTP) provides all you need for that. Check http://mirror.yoxos-eclipse-distribution.de/eclipse.org/technology/phoenix/demos/install-wtp/install-wtp.html to get a clue on how to use it. Starting with Eclipse Callisto (see http://www.eclipse.org/callisto/java.ph ), installing and using these things has become a breeze. :) Good luck, Kristian - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Resource configuration problems on servlets (images, css, javascript)
Hi; Pascal Guy schrieb: The problem comes when we integrate to post the request to my controller The controller works fine but the resources are not working (css, images and javascript) I am not sure to understand your problem right, but: servlet-mapping servlet-namecontroller/servlet-name url-pattern/controller/url-pattern /servlet-mapping [...] Do i need to map the resource types to something so it bypasses my servlet (and not be treated as a request) There _will_ be a request for each and every static component (i.e. image, css, js file, whatever) to be loaded from the server - but indeed, you shouldn't have your controller taking care of that. How are you referring to images and js from within your code? You should be sure to use absolute URLS (i.e. /images/logo.png instead of images/logo.png), otherwise you might end up with your server searching for the content in a place where it's not supposed to be found (i.e. /servlet-context/controller/images/logo.png). If you keep that in mind, chances are you won't have to do much configuration work in your web.xml but simply ensure that folders containing static things are somewhere out of the way of your servlet mappings. Hope this helps, good luck to you! Cheers, Kris - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat + axis service:
Hi again, Mark et al; Am Fri, 22 Sep 2006 07:23:29 -0400 schrieb Mark Thomas [EMAIL PROTECTED]: attachments. So far, recieving and decoding messages (small sizes, or locally) works well, but external tests using the remote sender client and bigger attachments always ends up like that: http://tomcat.apache.org/tomcat-5.5-doc/config/http.html Try maxPostSize = -1 and disableUploadTimeout = true Tried it, but it doesn't change anything to the better. Still SocketTimeoutException when the attachment size comes somewhere close to 100MB. :/ Is there anything else I can do to hunt this one down? Could this be a platform-specific issue (in that very case, the tomcat runs atop Windows 2000)? TIA and bye everyone Kris -- Kristian Rink * http://zimmer428.net * jab: [EMAIL PROTECTED] icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat + axis service:
Folks; I am running an (axis-based) SOAP web service inside a tomcat 5.5 environment to link two subsidiaries of our company. This service is supposed to recieve messages including very large ( 100 MB) MIME attachments. So far, recieving and decoding messages (small sizes, or locally) works well, but external tests using the remote sender client and bigger attachments always ends up like that: [...] AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.net.SocketTimeoutException: Read timed out faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:21 [...] This is bad. So, short question, given that modifying the calling client is not possible to me: Where to tweak my setup to get rid of that error? Is that an issue related to the tomcat setup or to axis? Currently I am playing around with axis MessageContext.setTimeout(), but documentation on that is rather limited - is this what I am looking for? TIA for any hints and bye, Kris -- Kristian Rink * http://zimmer428.net * jab: [EMAIL PROTECTED] icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Uploading the file
Piotr; just a shot in the dark as I experienced problems like that to be just incredibly hard to come by: Could this be due to a web-browser related timeout? I have seen something like that in our environment having customers that try to upload files across thin lines, and in most of the cases the browser sooner or later considered the connection to be timed out even while the download still was in progress... We asked people to use smaller files and/or use FTP and eventually AJAXified the upload site to get rid of that... Cheers Kris Am Wed, 13 Sep 2006 14:25:46 +0200 schrieb Piotr Dziędziel [EMAIL PROTECTED]: Hi All, When I'm uploading the file (size 4MB) from the same LAN everything is OK. When I'm uploading from different system over LAN or from the internet and the file has size is 3MB or lower, it's OK, uploading ends successful. I am facing the problem while uploading the file size bigger then 3MB ( size 4MB) from different system over LAN or from the internet. It is giving the following exception. Could anyone got this problem and found solution for this, Please help me out, as I am new to Struts framework.. Please. Tomcat version 4.1.31. When Exception Details from Catalina.out are : [...] -- Kristian Rink * http://zimmer428.net * jab: [EMAIL PROTECTED] icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: want to control winamp from servlet
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 rahulgarg schrieb: helo evry boby i want to knw how can i control external application like wainap from a servlet external databases can be accessed by tomcat y cant external application can u plz tel me hw can i acess apllication outside server space plz Does WinAmp provide some sort of programming interface (API) in order to be remote-controlled by any other application? This would be the cleanest approach to solving your problems. Maybe you might use some Windows-specific hacks to do the same, but I'm not really familiar with those. By the way, just curious: Why do you want to use server-side technology in order to remote-control a client / desktop application? What do you intend to do this way? You surely are aware of the fact that database access using JDBC is _fundamentally_ different to what you want to do, aren't you? Cheers, Kris - -- Kristian Rink * http://zimmer428.net * jab: [EMAIL PROTECTED] icq: 48874445 * fon: ++49 176 2447 2771 Wenn einer allein träumt, ist es nur ein Traum. Wenn viele gemeinsam träumen, ist das der Anfang einer neuen Wirklichkeit. (Hundertwasser) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFFA84wcxBAPOA1m6wRAkW5AJ9rqpept4ud+63XQUWcI8pnRGBxRgCeKXqP /f/NauSgF23dloM3VjmQtto= =4ai9 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: want to control winamp from servlet
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 rahulgarg schrieb: [snipped] helo kristian i knw the api by which winap can be controlled bye a java program it works fine for the normal java program on desktop but want to control winap from a client side winap is on the server i am doing some project it need it What sort of API are you using for that purpose, then? Is this official WinAmp stuff or something else? Do you have an example of how Winamp control is done there using client-side Java? What happens if you try the same from within a servlet? Cheers, Kris - -- Kristian Rink * http://zimmer428.net * jab: [EMAIL PROTECTED] icq: 48874445 * fon: ++49 176 2447 2771 Wenn einer allein träumt, ist es nur ein Traum. Wenn viele gemeinsam träumen, ist das der Anfang einer neuen Wirklichkeit. (Hundertwasser) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFFA9O0cxBAPOA1m6wRAqW2AJ9TMdKufJ9iog4bdTKbWptUpct3fQCgk42h ITol1Dh11OKQNzNyzyeJB3g= =nOQf -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat, apache, mod_rewrite and http-auth
Hi David, @list; On Thu, Aug 17, 2006 at 08:33:21AM -0400, David Smith wrote: Have you tried loosening up the refresh to let's say 5 seconds? Sounds to me like the refresh rate is too intense for a proxy environment. I will give that a try. By now, I started setting up a second configuration using mod_jk which _seems_ to work more reliable using my in-house development environment. Perhaps it will also help providing better external access to the resource. Another way to go (and I don't have the sample code) is to use a little javascript and some AJAX techniques for updating the page without a round trip. Yeah, I thought about this as well, but then again, initially I didn't expect to see any issues with my approach about that, and I am not yet experienced enough to know about AJAX in a proxy environment... Nevertheless, thanks a lot for your hints! :) Cheers best, Kristian -- Kristian Rink * http://zimmer428.net * jab: [EMAIL PROTECTED] icq: 48874445 * fon: ++49 176 2447 2771 Wenn einer allein träumt, ist es nur ein Traum. Wenn viele gemeinsam träumen, ist das der Anfang einer neuen Wirklichkeit. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat, apache, mod_rewrite and http-auth
Hi all; I do have a web environment running inside my LAN in a tomcat container, forcing users through HTTP Basic authentication. For now and locally, this uses to work well - the browser is prompting the user with a HTTP login window, and everything is fine. Right now, I need to expose this service, and, as for most of the other web sites hosted in our LAN, this includes using an apache2 in a DMZ environment acting as Reverse Proxy using mod_rewrite. So far, so good. My setup is something like that: RewriteEngine On RewriteLogLevel 5 RewriteLog /var/log/apache2/rewrite.log RewriteRule ^/pcd/(.*) http://192.168.1.242:8080/pcd/$1 [P] [L] It works, which I hoped. But it doesn't work _right_. Whenever requesting an URL like http:/domain/pcd/get?... , I am prompted to log in using HTTP auth. But then, after this happened, the browser tries to access 192.168.1.242 instead of domain. This is obviously not working, and this also ain't what I want. But I wonder why mod_rewrite doesn't work well in this situations. Explanations, anyone? Or hints how to get out of this? Much appreciated, if so. TIA and bye, Kristian -- Kristian Rink * http://zimmer428.net * jab: [EMAIL PROTECTED] icq: 48874445 * fon: ++49 176 2447 2771 Wenn einer allein träumt, ist es nur ein Traum. Wenn viele gemeinsam träumen, ist das der Anfang einer neuen Wirklichkeit. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT?] Servlet, redirect and progress-monitoring?
Hi all, being aware that this is not a question strictly tomcat-relevant, lacking a really good mailing-list for discussions closer to the J2EE background itself, I hope for some input by all the gurus out there. I'm into a situation like this: A servlet gathers statistical information across the data in our DMS, is supposed to make a PDF out of them and send them back to the client who requested them (PDF is demanded). Problem, however, is that sometimes these computations take quite some time, leaving me with two situations: (a) The browser itself considers the connection to be timed out as the servlet is stuck in doGet() for a bunch of minutes. (b) The user itself considers the connection to be dead and closes the browser window. Both situations are uncomfortable. By now, my initial idea was something like that, utilizing two servlets: - Servlet 1 processes the request and immediately redirects the client to another servlet while finishing the calculations and creating the PDF file. - Servlet 2 refreshes, say, each 2 seconds, checking whether the file in question finally has been created and put in place to, then, send this back to the browser. This, however, doesn't work out as Servlet 1, even though sending the Redirect, doesn't redirect until leaving doGet(). So, that's not the solution... My question, now: Is there any usual / best-practise way of doing something like that, of presenting people with a please-stand-by page while there is activity goin' on in background? Is there a way of solving something like this without being in need of JavaScript/AJAX/DWR or something the like? Any hints, even just pointers to good documentation on that issue, are very much appreciated. Thanks and bye, Kristian -- Kristian Rink * http://zimmer428.net * jab: [EMAIL PROTECTED] icq: 48874445 * fon: ++49 176 2447 2771 Wenn einer allein träumt, ist es nur ein Traum. Wenn viele gemeinsam träumen, ist das der Anfang einer neuen Wirklichkeit. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: servlet and HTTP authentication
Hey there; and, at first, thanks a lot for the hint. [EMAIL PROTECTED] schrieb: WWW-Authenticate: Basic realm=My Document Management System I'm not sure if tomcat will interpret the resulting Authorization header in the next request, given that you asked him not to authenticate, but you can always ask for the contents of that header, strip off the Basic from the front, and Base64.decode the rest, yielding userid:password. Split on the : and you have your id and password. Hmmm, I feel stupid right now as I could have thought about that myself. Thanks for enlightening me, that's pretty much what I needed! :) Thanks and bye, Kristian -- Kristian Rink * http://zimmer428.net * jab: [EMAIL PROTECTED] icq: 48874445 * fon: ++49 176 2447 2771 Wenn einer allein träumt, ist es nur ein Traum. Wenn viele gemeinsam träumen, ist das der Anfang einer neuen Wirklichkeit. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
servlet and HTTP authentication
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all; gotta solve a very special authentication situation: Users need to have access to certain file packages using an URL like http://.../packages/package-id with package-id referring to an identifier stored in a local document management system. User information (id, password) are stored in the DMS database as well. To provide access to a certain package, I need to ensure (a) the user is valid (thus, has authenticated) (b) the user is owner of the package (which I can find out using the DMS database as well) However, following this approach I cannot use container-based authentication as the DBMS user management repository is not easily accessible via such a configuration but there are Java classes to authenticate the user using an API which to be called from another Java class, a servlet, ... So, my question: Is there a way to configure Tomcat that, for a given servlet or resource, a HTTP authentication window will appear and, then, the data entered there (username, password) is given to the servlet in order to do anything useful with it? I _suppose_ those parameters should be available as part of the Request, but I don't know how to make tomcat demand HTTP authentication _without_ automatically validating these parameters. Any hints on that? TIA and bye, Kristian - -- Kristian Rink * http://zimmer428.net * jab: [EMAIL PROTECTED] icq: 48874445 * fon: ++49 176 2447 2771 Wenn einer allein träumt, ist es nur ein Traum. Wenn viele gemeinsam träumen, ist das der Anfang einer neuen Wirklichkeit. (Hundertwasser) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEyNnIcxBAPOA1m6wRAiUDAJ0dye/TauPE+I6aN/zozzGbIDWA1gCfWaV5 GP9iBHbOOjIsMPA1TLIq+/s= =1z5/ -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
css and images (stupid question?)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all; playing around with tomcat in order to both learn using the package and create a small web site there, I'm currently left with a problem which, though probably being small (and not really related to tomcat), keeps bugging me: I'm trying to do the visual stuff of my jsp using a css style file, which is good, so far. Within the css file, I'm using images for backgrounds etc like that: background: #fff url(/images/bg_header_blau.jpg) no-repeat top left; My problem, right now, is where to put the images within the web application so they're actually found when displaying the page. Initially, I created a folder images within my web application and referred to the images using url(images/...) with relative path names, which didn't work. Also tried to place the images folder inside $CATALINA_HOME/webapps and then using absolute image urls (/image/...), which also didn't work. So, where's the magic? I've always been through some tougher moments with css and images while dynamically generating content, but right now I feel really helpless about that. Can someone enlighten me? Cheers and thanks, Kris - -- Kristian Rink * http://zimmer428.net * jab: [EMAIL PROTECTED] icq: 48874445 * fon: ++49 176 2447 2771 Be yourself the kind of change you want to see in this world. (Gandhi) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFDive4cxBAPOA1m6wRAnRxAJ90PaDKZsQQDo3M4CCd7WV5Syi/MgCdGhbs hobJ1TqkErAqjLxZc6gV0kM= =O7hF -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: css and images (stupid question?)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Terence et al; and at first thanks for the many hints regarding this issue. Terence M. Bandoian schrieb: My understanding is that relative URLs in CSS style sheets are relative to the location of the style sheet, not the HTML page which references the style sheet. Yeah, indeed. I finally solved my problems by referencing to the css within my jsps using the absolute server path, and now everything works the way it's supposed to. Thanks guys! :) Cheers, Kris - -- Kristian Rink * http://zimmer428.net * jab: [EMAIL PROTECTED] icq: 48874445 * fon: ++49 176 2447 2771 Be yourself the kind of change you want to see in this world. (Gandhi) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFDjAAAcxBAPOA1m6wRAo/FAJ4rbXr3c1BmJTK+Lf8mK8xQQuujDwCfUncH hVp1o/q0DjeCoqMCFT7Qp3E= =2WXq -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
unix user auth within servlets/jsps?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all; another question which probably can be considered stupid, but nevertheless: I'm in an attempt of learning how to deal with server-sided java by rebuilding an intranet solution formerly implemented in Perl which currently runs atop gnu/linux. The java solution I'm about to build is intended to fully replace this, which requires me to do two basic things besides just presenting content: - - users need to be enabled to upload files to some pre-defined folder within the unix filesystem - - users need to have a download page where they can fetch files from within their $HOME - From a Perl programmers point of view, determining which folders to use might be an easy task doing some black text-processing magic using /etc/passwd, but that's somehow not the way, I guess. Besides this, users of course need to login to the site before they may up/download anything, so I need to authenticate them against the Unix-style user information stored locally. I'm not yet completely sure how to deal with this... So, two questions: * How to link a jsp/servlet-based app to any unix-based user management? Will I have to take a dive into JAAS for this, or is there a faster way? * Generally, since this is not really tomcat-related (just to the point that I'm using tomcat for this): Can anyone recommend a good mailing-list for j2ee newbies? :) Thanks for any hints and bye. Cheers, Kris - -- Kristian Rink * http://zimmer428.net * jab: [EMAIL PROTECTED] icq: 48874445 * fon: ++49 176 2447 2771 Be yourself the kind of change you want to see in this world. (Gandhi) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFDjAG/cxBAPOA1m6wRAhCFAJ93nOEvBmswoIPShERNzMHEN2vEowCfRn3z J/0u0aHMlfJJm7tMeN0Nu98= =xMMI -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]