What could be the cause of defunct tomcat7 process ?

2014-06-28 Thread Albert Kam
I was running tomcat7 production server for several days, and then suddenly it was **unreachable** by the http port. Strangely though, the background processes **were still running** as can be seen by the logs. So i tried to stop tomcat7 using `invoke-rc.d tomcat7 stop` from my *debian wheezy*

Re: [OT] [Fwd: TomEE Professional Support]

2013-11-13 Thread Albert Kam
I also got it. What i did was clicking on the unsubscribe button and gave mailchimp the reason why. On Wed, Nov 13, 2013 at 8:56 PM, Leon Rosenberg rosenberg.l...@gmail.comwrote: I got it too. I think its easier to delete and forget it, as to debate about it. ;-) regards Leon On Wed, Nov

How to force undeployOldVersions ?

2013-11-02 Thread Albert Kam
I have had a good experience doing the parallel deployment with the latest stable build of tomcat7, by using autoDeploy after copying a newer version of WAR to the appbase. As i can see from my manager app, there are 2 versions running, the newer one is serving new requests as expected. The

Re: How to force undeployOldVersions ?

2013-11-02 Thread Albert Kam
of true is also fine. I wonder what might be the cause of the warning. I'm using debian wheezy's tomcat7 packages. On Sat, Nov 2, 2013 at 9:42 PM, Albert Kam moonblade.w...@gmail.com wrote: I have had a good experience doing the parallel deployment with the latest stable build of tomcat7

Re: How to force undeployOldVersions ?

2013-11-02 Thread Albert Kam
? Is it a bad idea ? Thanks for pointing this out, really appreciate it ! On Sat, Nov 2, 2013 at 11:50 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2013/11/2 Albert Kam moonblade.w...@gmail.com: Hello. I forgot to mention that i've made sure from manager app that the old webapp has 0

How to log response time ?

2013-11-02 Thread Albert Kam
Hello. I'm currently using tomcat 7.0.28-4 on debian wheezy, along with APR connector. I'm having a slow response when accessing the webapp. Based on google chrome's tool to inspect req/response's time, i found out that it takes at around 1 second (around 400ms connecting, sending 1ms, 600ms

Re: How to log response time ?

2013-11-02 Thread Albert Kam
My apology. I also forgot to mention that currently i have no reverse proxy in front of tomcat for the time being. Please share your thoughts on this. Thanks ! On Sun, Nov 3, 2013 at 12:23 PM, Albert Kam moonblade.w...@gmail.comwrote: Hello. I'm currently using tomcat 7.0.28-4 on debian

Re: How to log response time ?

2013-11-02 Thread Albert Kam
I think this doesnt matter now. I've tried accessing the website from different places, and with different results. 0.17ms from Berlin, 0.4ms from US, 0.9ms from Jakarta and Melbourne. So it's indeed the connection problem. On Sun, Nov 3, 2013 at 12:24 PM, Albert Kam moonblade.w

Re: Getting error 403 forbidden while using HTTP PUT method

2013-10-04 Thread Albert Kam
You were stating that it's ok for GET, and not for PUT. But what about POST methods ? Are they doing okay ? Some suggestions : I wonder whether the HiddenHttpMethodFilter is reached. You have many filters, and maybe one of them could be causing this ? To answer this, you might consider extending

Cannot access webapp outside the server box using a public domain name

2013-09-18 Thread Albert Kam
I have a case where accessing the webapp within the server box is fine, but accessing the webapp from outside the server box using the domain name is problematic, but not so using the public ip address, which is accessible. The content of the webapp is just a single index.html, so no JSPs, no

Re: Cannot access webapp outside the server box using a public domain name

2013-09-18 Thread Albert Kam
locally on my laptop, which is why it doesnt use dns to get the public ip. Now that i commented the local mapping in my etc/hosts, everything works great ! Thank you so much for your help ! Warm regards from Jakarta, Albert Kam On Wed, Sep 18, 2013 at 4:50 PM, André Warnier a...@ice-sa.com wrote

Re: Deploy a website downloaded from internet using wget (Tomcat 8.0 RC)

2013-09-17 Thread Albert Kam
Why not create a local copy with the links converted ? Take a look at http://stackoverflow.com/questions/6348289/download-a-working-local-copy-of-a-webpage On Wed, Sep 18, 2013 at 12:09 AM, Vikram Singh vsp1...@gmail.com wrote: Hi I downloaded a website say test.org using wget utility. Now I

Re: How to store session in database

2013-05-24 Thread Albert Kam
Hopefully these open source nosql-tomcat-session-managers could be helpful in your jorney : https://github.com/jcoleman/tomcat-redis-session-manager https://github.com/dawsonsystems/Mongo-Tomcat-Sessions On Fri, May 24, 2013 at 6:47 PM, Daniel Mikusa dmik...@gopivotal.comwrote: On May 24,

Re: [OT] Sharing lots of little pieces of data across a cluster

2013-03-20 Thread Albert Kam
I am not sure this might suit you, but if i am currently thinking of http://redis.io/ Key and value storage (binary value is supported), expiry is supported, support scaling horizontally, can be set to be non-persistent (only in memory, which is fast) For more complex data structures, and more

Re: HTTP 404 error when trying to run a Hello World Java Servlet while using Eclipse and Tomcat

2012-11-02 Thread Albert Kam
Perhaps you would like to share : - Whether you started the tomcat successfully (as seen from the logs/catalina.out) - Whether you can access the tomcat with http://localhost:8080 (assuming you didnt change the tomcat's port) - Whether you mapped the servlet in web.xml ? - What URL did you use to

WebSocket scalability concerns

2012-08-27 Thread Albert Kam
I am currently doing some research on implementing a chat system using java on the server side. I read a code example for tomcat on : http://svn.apache.org/viewvc/tomcat/trunk/webapps/examples/WEB-INF/classes/websocket/chat/ChatWebSocketServlet.java?view=markup 1. Horizontal scaling I imagine

Re: tomcat maven plugin + configuring virtual host for the embedded tomcat ?

2012-07-31 Thread Albert Kam
/browse/MTOMCAT-172 HTH, -- Olivier 2012/7/31 Albert Kam moonblade.w...@gmail.com: Hi, I have been developing with tomcat7:run happily for some months now. But then i am currently expanding the development where different domains would provide different behaviour for the same webapp (imagine

Re: tomcat maven plugin + [default] overlay

2012-07-31 Thread Albert Kam
xmls, properties, web files, etc (like overlay, but without making the WAR beforehand) ? Thank you ! On Tue, Jul 31, 2012 at 12:57 AM, Olivier Lamy ol...@apache.org wrote: 2012/7/26 Albert Kam moonblade.w...@gmail.com: Hello, I am having a situation where i couldnt tomcat7:run with overlay

Re: tomcat maven plugin + configuring virtual host for the embedded tomcat ?

2012-07-31 Thread Albert Kam
Sorry, forgot to mention a suggestion to document this feature in : http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/run-mojo-features.html Regards, Albert On Tue, Jul 31, 2012 at 4:01 PM, Albert Kam moonblade.w...@gmail.com wrote: Wow, so fast ! It worked flawlessly : After adding

Re: tomcat maven plugin + configuring virtual host for the embedded tomcat ?

2012-07-30 Thread Albert Kam
these aliases in the plugin's configuration in the pom.xml .. Thanks ! On Tue, Jul 31, 2012 at 12:54 AM, Olivier Lamy ol...@apache.org wrote: Hi, Not possible currently. What is your use case ? those goals are for dev purpose. 2012/7/27 Albert Kam moonblade.w...@gmail.com: I am currently using

tomcat maven plugin + configuring virtual host for the embedded tomcat ?

2012-07-27 Thread Albert Kam
I am currently using the snapshot version of tomcat maven plugin. And i am using tomcat7:run and tomcat7:run-war-only (for webapps with overlay) actively. And the time has come for me to try out virtual host .. and as i understand it, i have to configure the host, context, etc .. But i've been

tomcat maven plugin + [default] overlay

2012-07-26 Thread Albert Kam
Hello, I am having a situation where i couldnt tomcat7:run with overlay in eclipse. In the eclipse indigo, i am using the maven plugin, and have imported two maven modules, the childwebapp which depends on the parentwebapp, which is just like a skeleton, with it's own classes, jsps, static

Re: Error

2012-07-03 Thread Albert Kam
First your should find the location of your tomcat-users.xml first, which is normally located here : ${TOMCAT_HOME}\conf\tomcat-users.xml If you are using tomcat bundled with Netbeans, the ${TOMCAT_HOME} should be somewhere in personal user

Re: post redirect get to the same tomcat instance in a tomcat cluster ?

2012-06-13 Thread Albert Kam
Oops, i really misread the documentation, thinking it will never use session to provide that feature. Thank you for the pointers ! On Wed, Jun 13, 2012 at 7:23 PM, Pid p...@pidster.com wrote: On 13/06/2012 13:13, Pid * wrote: On 12 Jun 2012, at 18:17, Albert Kam moonblade.w...@gmail.com wrote

post redirect get to the same tomcat instance in a tomcat cluster ?

2012-06-12 Thread Albert Kam
Hi all ! Is it possible to do POST submit to the tomcat-A, redirect happens, and then GET to the same tomcat-A again in a tomcat cluster ? And, in hope to make things easier, all the tomcat servers in the cluster are stateless wihout any sessions This needs arise because each tomcat servers will

Re: Map domain names to different paths of a single webapp ?

2012-06-12 Thread Albert Kam
I have checked the tuckey urlRewriter, and it seems cool, but doesnt seem to fit my needs. Anyway, you warnings make a lot of sense to me, so thanks there ! On Wed, Jun 13, 2012 at 2:29 AM, André Warnier a...@ice-sa.com wrote: Albert Kam wrote: Dear Tomcat Users ! Let's say that i have

Re: [OT] Observer pattern?

2012-06-12 Thread Albert Kam
If you are talking about how to notify other webapps, i think you're actually talking about integration between existing applications here, which can be done using RMI (java only and using a specific port), Hessian/Burlap (support several languages + http, but not java serialization) , or even

Re: tomcat7:run with multi maven modules changes

2012-05-09 Thread Albert Kam
Aha, now the warning is gone. The cause was the old snapshot repository and pluginRepository i was still using. Thank you ! On Wed, May 9, 2012 at 1:33 PM, Olivier Lamy ol...@apache.org wrote: 2012/5/9 Albert Kam moonblade.w...@gmail.com: After the advices, i took a peek on the the eclipse

tomcat7:run with multi maven modules changes

2012-05-08 Thread Albert Kam
I notice that i have to repeat these steps so that tomcat7:run will see the newest stuffs from other maven modules : - rebuild all of my mvn modules (including my webapp module on which my tomcat7:run-ed, and other dependencies module) - clean my eclipse java project, rebuilding everything -

Re: tomcat7:run with multi maven modules changes

2012-05-08 Thread Albert Kam
and furthermore I don't use eclipse :-). I imagine there is some m2e connector to write 2012/5/8 Albert Kam moonblade.w...@gmail.com: I notice that i have to repeat these steps so that tomcat7:run will see the newest stuffs from other maven modules : - rebuild all of my mvn modules (including my

[tomcat maven plugin] configure vm options on embedded tomcat ?

2012-05-01 Thread Albert Kam
to do it to supply javaagent argument because i am currently using spring and aop. Regards, Albert Kam - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: [tomcat maven plugin] configure vm options on embedded tomcat ?

2012-05-01 Thread Albert Kam
Works great now, thank you ! On Tue, May 1, 2012 at 5:45 PM, Olivier Lamy ol...@apache.org wrote: 2012/5/1 Albert Kam moonblade.w...@gmail.com: I have successfully launched an embedded tomcat as detailed in here : http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/tomcat7-maven-plugin/adjust

Re: Unable to start Tomcat due to DISPLAY variable issue

2008-08-26 Thread Albert Kam
this line if you havent got one, or edit it if you already have it : JAVA_OPTS=-Djava.awt.headless=true HTH, Albert Kam On Tue, Aug 26, 2008 at 12:09 PM, Jayaraman, Gopinath [EMAIL PROTECTED] wrote: Hi Everyone, I am having this typical issue which many have faced which is below: Graphics

Remastering tomcat installer ..

2008-08-21 Thread Albert Kam
Hello, I'm just wondering if it is possible to 'remaster' or rebuild tomcat-windows-installer, so that i could put my war files or my webapps along with it to produce a custom tomcat installer + my own webapps .. Is this legal and possible ? =) Regards, Albert Kam -- Do not pursue the past

Re: Remastering tomcat installer ..

2008-08-21 Thread Albert Kam
be fantastic too :) I tried googling around, but im afraid i'm using the wrong keywords =p And the license is the Apache v2 license, am i correct ? Regards, Albert Kam On Thu, Aug 21, 2008 at 5:34 PM, Mark Thomas [EMAIL PROTECTED] wrote: Albert Kam wrote: Hello, I'm just wondering