Re: Can different webapps share a context?

2008-05-18 Thread Andre Prasetya
Another way is to setup a webapps that will act as a broker, communications via web service, if you use spring framework, you can use its remoting feature, or you can use axis/xfire for its web service. -andre- Aleksandar Matijaca wrote: I've had to do this a few times in my life - never easy

Re: Configuring PHP on Tomcat 6.0

2007-07-31 Thread Andre Prasetya
you might wnna take a look at this http://quercus.caucho.com/ i havent use it, but maybe its is useful for you. On 8/1/07, Mike Duffy <[EMAIL PROTECTED]> wrote: > > Does anyone have a good reference for installing PHP on Tomcat 6.0? > > There is no good info at php.net and the instructions I've fo

Re: Spring+hibernate business logic accross multiple webapps

2007-07-09 Thread Andre Prasetya
i think its better if you use web services for that purpose, or rmi, whichever right to your taste On 7/9/07, axelspin <[EMAIL PROTECTED]> wrote: Hello, I am wondering which is the best way to deploy within Tomcat multiple web apps (portlets-web services) that have access to the same business

Re: What is Tomcat 6 status?

2007-06-28 Thread Andre Prasetya
I m using tomcat 6 at my production and 5.5 at my development, the backward compatibility is nice I put tomcat 6 coz I planned on using the newest servlet spec. so far no problem on default setting. its working nice at jdk 6 or 5. On 6/29/07, Jacob Rhoden <[EMAIL PROTECTED]> wrote: It is not as

Re: Share one singleton across webapps

2007-06-19 Thread Andre Prasetya
I m assuming you're using WTP and Eclipse. To avoid that disgusting problem, add the problematic jar to build path only and not to J2EE module dependency. UAT : User Acceptance Test QA : Quality Assurance On 6/18/07, Kevin Wilhelm <[EMAIL PROTECTED]> wrote: It works! Thanks! The problem has

Re: Thread Pool

2007-06-13 Thread Andre Prasetya
I am a bit loss reading your message. is the flow like this ? a java program called a servlet in multi thread mode while the request is being processed, the java program called another process and somehow end up in calling another servlet in the same manner as above. But then the program have to

Re: Tomcat Server CPU utilization goes upto 400%

2007-06-13 Thread Andre Prasetya
i think its more to application problem instead of tomcat problem. Is there any application hosted inside tomcat that get infinite loop or use a kind of loop checking something that utilize the thread fully ? try solving that with the application developer On 6/13/07, Sumit Gaikaiwari <[EMAIL PRO

Re: Context.xml in tomcat 5.5

2007-04-19 Thread Andre Prasetya
lication.?thne i must write it in the TOMCAT_HOME/conf/context.xml ,isn't it??? Nd one more thing Sir,For configuring Data Source(for pooling) in tomcat 5.5 we can configure it in server.xml using JNDI ..then why in TOMCAT_HOME/conf/context.xml ? On 4/19/07, Andre Prasetya <[EMAIL PROTECTED

Re: Context.xml in tomcat 5.5

2007-04-19 Thread Andre Prasetya
.... On 4/19/07, Andre Prasetya <[EMAIL PROTECTED]> wrote: > > the one at TOMCAT_HOME\conf\context.xml is the one that is loaded for all > application, you ll wanna use that if you have a global environment > variable. for example you need a DataSource (connection pool) that is &

Re: Context.xml in tomcat 5.5

2007-04-18 Thread Andre Prasetya
the one at TOMCAT_HOME\conf\context.xml is the one that is loaded for all application, you ll wanna use that if you have a global environment variable. for example you need a DataSource (connection pool) that is shared for all application. you can configure a context.xml inside META-INF of your we

Re: install DBCP and mm.mysql 2.0.14 (JDBC Driver) and a test app, getting class compile error

2007-03-05 Thread Andre Prasetya
mmm i think its a syntax error at test.jsp see line 7 foo.DBTest On 3/5/07, Wayne Bragg <[EMAIL PROTECTED]> wrote: I am trying to install DBCP and mm.mysql 2.0.14 (JDBC Driver) and a test app to see if it works. I'm not sure I have all the correct steps and configuration, in other words I don't

strange log4j behaviour

2007-02-21 Thread Andre Prasetya
Hi, I m using tomcat 5.5 and we're hosting 5 application. The problem is that 1 of the application is not doing the log as expected. We're using commons logging and log4j. All of the log4j config is similar. and this is the log4j config file log4j.rootLogger=INFO,STDOUT,FILE log4j.appender.STDO

Re: Tomcat mysteriously shuts down

2007-02-15 Thread Andre Prasetya
why dont you post the catalina.out entry before pausing coyote ? the one that you post is the regular log for shutting down tomcat On 2/15/07, Nadav Steindler <[EMAIL PROTECTED]> wrote: When my servlet isn't sent any requests for about 15 minutes, tomcat shuts down. In particular: 1) The Tomc

APR installation Question

2007-01-31 Thread Andre Prasetya
I got this : The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: I already compiled the tcnative, where can i add the path to java.library.path ? -- -Andre- People see things the way they are and say "why ?" I see

Re: how to detect whether Tomcat has finished starting completely on Windows?

2007-01-24 Thread Andre Prasetya
There are many ways 1. Parse the localhost log cek for startup completed or something like that 2. telnet to your server at tomcat port 3. try requesting something from your tomcat On 1/25/07, Vlad <[EMAIL PROTECTED]> wrote: Hello, We are planning to use latest Tomcat from 5.x branch on Windo

Re: Path element in context.xml

2007-01-23 Thread Andre Prasetya
This question being asked many times by many people. Context path="xxx" is not supposed to be used unless you mention it at server.xml but its strongly discouraged.CMIIW so far i only use the war name as its deploy path like foo.war will map to localhost:8080/foo/ On 1/24/07, DHARNA, AJAY [AG/

Re: Applet does not send request to servlet

2007-01-17 Thread Andre Prasetya
i think attachments are disabled... On 1/17/07, Teh Noranis Mohd Aris <[EMAIL PROTECTED]> wrote: Hi, I already solve the problem of loading my applet in the web browser. Thank you to all. Now, I'm having the problem to send request from the applet to the servlet. Attached is the AppletLogin.ja

Re: Keeping the server side object alive !!!

2007-01-15 Thread Andre Prasetya
I attach an example for you. MigrationUtil is a helper class that needs initialisation when the webapp started and needs cleaning when the webapp stopped On 1/16/07, Luis Rivera <[EMAIL PROTECTED]> wrote: Dear Leon, Thanks for the info, I am reading about Contexts, but I am not sure if the

Re: Keeping the server side object alive !!!

2007-01-15 Thread Andre Prasetya
I attach an example for you. MigrationUtil is a helper class that needs initialisation when the webapp started and needs cleaning when the webapp stopped On 1/16/07, Luis Rivera <[EMAIL PROTECTED]> wrote: Dear Leon, Thanks for the info, I am reading about Contexts, but I am not sure if the

Re: Problem with Applet-to-Servlet Programs

2007-01-14 Thread Andre Prasetya
Have you map the AppletLogin to the servlet path at web.xml ? if you haven't dont forget in doing so ^^ On 1/15/07, Teh Noranis Mohd Aris <[EMAIL PROTECTED]> wrote: Hi, I'm doing applet-to-servlet programs. I've put the applet in directory c:\jakarta-tomcat-4.1.31\webapps\ROOT\application\Log

Re: Tomcat unexpectedly shuts down

2007-01-11 Thread Andre Prasetya
Hi Steve, Is there anything that flood your server with requests or trigger an infinite loop within the application ? I have similar experiences in 2 scenarios 1. A tomcat died every morning, Then we foundout that its flooded by requests at a certain time and there is a flaw at our design that pe

Error when stopping or reloading web application

2007-01-08 Thread Andre Prasetya
Hi, I got a problem. I always see this at catalina.out everytime I stopped or reload the web application, what can I do to stop this ? My Application is Thread based and run behind a web application. When the web application stopped, it will set the stop value of the Thread as true and will dump e

Re: web application - student need help

2007-01-07 Thread Andre Prasetya
When the jsp shows error, its about exception right ? what is the exception and what does it says ? On 1/6/07, Michael Ni <[EMAIL PROTECTED]> wrote: Hi i'm doing a web application to help manage players for the online game Final Fantasy XI. Im using tomcat, sqlserver2000, and jsp. both sqlser

Re: web application - student need help

2007-01-07 Thread Andre Prasetya
When the jsp shows error, its about exception right ? what is the exception and what does it says ? On 1/6/07, Michael Ni <[EMAIL PROTECTED]> wrote: Hi i'm doing a web application to help manage players for the online game Final Fantasy XI. Im using tomcat, sqlserver2000, and jsp. both sqlser

Re: Presentation on Tomcat

2007-01-03 Thread Andre Prasetya
Hi Vijay In my opinion, there are some ways to deploy application : 1. By war, using tomcat manager 2. By war, dropping on webapps 3. By classes, drop the folder to webapps (you might got problem in updating it, as i always got access problem, so i prefer war approach) 4. Using embedded tomcat, i

Re: Setup of Tomcat

2006-12-28 Thread Andre Prasetya
everything should be at /bin folder, use startup.bat to start, shutdown.batto shutdown. service.bat to register to windows services. edit server.xml at /conf to change port, add valve, etc... On 12/27/06, Dinesh Kumar <[EMAIL PROTECTED]> wrote: Just downloaded tomcat 6.0.2 for windows. How can

Re: JSP Reload problem (wierd)

2006-12-26 Thread Andre Prasetya
Mon, u have access to Tomcat Manager ? and its installed right ? try asking the manager to reload the application then hit refresh On 12/26/06, Mon Cab <[EMAIL PROTECTED]> wrote: --- Mon Cab <[EMAIL PROTECTED]> wrote: > I just added the following to web.xml. > > > checkInterval

Re: Servlet with POST Request

2006-12-20 Thread Andre Prasetya
cat Servlet to do the same thing, because Tomcat already some behind the scenes stuff already setup. Does this make sense? Am I totally off my rocker? (My wife would definately agree with that last bit.) Andre Prasetya wrote: > Why do you want to read POST by using reader ? I only use t

Re: How to Run Servlet

2006-12-20 Thread Andre Prasetya
no wonder, add the classpath to servlet, you need to ad the servlet-api.jar e.g : javac -cp d:/path/to/servlet-api.jar HelloServlet.java Athula, I suggest u startoff with an IDE, I recommend Netbeans for a beginner to servlet. download the Netbeans5.5 then new project, choose web project, choo

Re: Servlet with POST Request

2006-12-19 Thread Andre Prasetya
ng to use Tomcat Servlet to do the same thing, because Tomcat already some behind the scenes stuff already setup. Does this make sense? Am I totally off my rocker? (My wife would definately agree with that last bit.) Andre Prasetya wrote: > Why do you want to read POST by using reader ? I only

Re: Servlet with POST Request

2006-12-19 Thread Andre Prasetya
Why do you want to read POST by using reader ? I only use the stream from request on a PUT request. On 12/16/06, Scott Carr <[EMAIL PROTECTED]> wrote: Hassan Schroeder wrote: > On 12/15/06, Scott Carr <[EMAIL PROTECTED]> wrote: >> Does a servlet require the use of a Content-Length for the Read

Re: Is jsp designed for use by large websites

2006-12-07 Thread Andre Prasetya
Is SJAS 9 really using tomcat inside ? its already 2.5 and the behaviour is slightly different like the getContextPath(), and other function which returns null at tomcat 5.5 has a return value at SJAS 9. Log log = Utility.getLogger(this); ServletContext context = evt.getServletConte

Re: Probm in starting Tomcat5.5

2006-12-03 Thread Andre Prasetya
How do you start your tomcat ? using windows services ? try using the batch file startup.bat located at /bin of your tomcat installation directory. -Andre- On 12/3/06, thiru chengodu <[EMAIL PROTECTED]> wrote: Hi, i'm using Tomcat 5.5.1 in windows xp, Now i cant start Tomcat and receiving the

Context Path

2006-11-27 Thread Andre Prasetya
Hi, lets say that i have a war named dodol.war, if i deployed to tomcat, it will be deployed to /dodol rite ? is it possible to get the path '/dodol' programatically ? I am thiking of putting a configuration file outside tomcat lets say at /opt/server/gateway/config and the file name will be the

Re: Tomcat Performance Concerns

2006-11-21 Thread Andre Prasetya
Yupe agreed, but for database that is used with frequent insert and delete statement, I have to vacuum them frequently. Which is a boring task to do. I created an agent that will vacuum the database every friday. Then I move it to MySql because I think its more suited to my needs. -Andre- On 11/

Re: Tomcat Embedded and Server.xml

2006-10-13 Thread Andre Prasetya
ports? If so, how may I ask?Best regards,MiguelOn 10/12/06, Andre Prasetya < [EMAIL PROTECTED]> wrote:> Hi Miguel, I m using tomcat embedded but i still use server.xml too>> -Andre->>> On 10/10/06, Miguel Correia Ricardo < [EMAIL PROTECTED]> wrote:> >> > He

context.xml problem

2006-10-13 Thread Andre Prasetya
Hi All Adding my yesterday problem, I found this at localhost_log_comium_mt 2006-10-13 14:54:33 StandardContext[/comium_mt]Error configuring application listener of class com.ricochet.connector.im3.MTQueueProcessor java.lang.ClassNotFoundException: com.ricochet.connector.im3.MTQueueProcessor

Re: Tomcat Embedded and Server.xml

2006-10-12 Thread Andre Prasetya
Hi Miguel, I m using tomcat embedded but i still use server.xml too -Andre- On 10/10/06, Miguel Correia Ricardo <[EMAIL PROTECTED]> wrote: Hello, I'm having a doubt that is bugging me. And I need to solve it also. Everywhere I look, it says that by using Tomcat Embedded I don't need the serv

context.xml problem

2006-10-12 Thread Andre Prasetya
Hi I have problem with my context.xml, please tell me what I have done wrong factory org.apache.commons.dbcp.BasicDataSourceFactory url jdbc:mysql://**/comium