Connection Leak in java - Tomcat 6.0.18

2008-11-11 Thread Arun Raj Ramkumar
Hi friends,
Please let me know is there a way to find out connection leak in my java
code , when its deployed in tomcat. Am using tomcat 6.0.18
 
Regards,
Arun.


Apache 2.0 Authentication LDAP

2008-09-22 Thread Arun Raj Ramkumar
Hi Friends,
 
I have recently migrated my webapp from tomcat 4.x to 6.0 . Please let me
know how to set up Apache 2.0 for authentication(using LDAP) by connecting
it with tomcat 6.0 . Please let me know the steps to be followed 
like changes in httpd.conf . I am using Linux server. Is there  any settings
need to be changed for linux server. Earlier i used sunOS.
 
Regards,
Arun.


RE: Apache 2.0 Authentication LDAP

2008-09-22 Thread Arun Raj Ramkumar
Hi,
Yes , that is my scenario. Please let me know what are the settings or
changes I need to do for Apache authentication via LDAP.

Regards,
Arun 

-Original Message-
From: André Warnier [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 22, 2008 4:19 PM
To: Tomcat Users List
Subject: Re: Apache 2.0 Authentication LDAP

Arun Raj Ramkumar wrote:
 Hi Friends,
  
 I have recently migrated my webapp from tomcat 4.x to 6.0 . Please let 
 me know how to set up Apache 2.0 for authentication(using LDAP) by 
 connecting it with tomcat 6.0 . Please let me know the steps to be 
 followed like changes in httpd.conf . I am using Linux server. Is 
 there  any settings need to be changed for linux server. Earlier i used
sunOS.
  
Hi Arun.
As asked, your question is difficult to understand, and even more to answer
I think.
What is exactly what should happen where ?
I'll give you a possible scenario, and you tell us if this scenario is what
you want to do, or tell us your own scenario, ok ?

My scenario :
Your configuration is such that all HTTP (browser) accesses go to Apache
first.  Apache does the authentication via LDAP (using for example
mod_authnz_ldap) for any URLs that are protected (including the ones that go
later to Tomcat).
Than Apache decides which calls go to Tomcat (via a mod_jk connector or
mod_proxy_ajp).
mod_jk (and the Tomcat side of that connector) is configured so that the
Apache authentication is passed on to Tomcat.
Tomcat itself does not do authentication, but relies on the user-id passed
on by Apache (and the roles defined in Tomcat) to access the Tomcat
applications.


re : http://httpd.apache.org/docs/2.2/mod/mod_authnz_ldap.html
re : Tomcat Connector, attribute tomcatAuthentication or something like
that.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
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: Apache 2.0 Authentication LDAP

2008-09-22 Thread Arun Raj Ramkumar
Thanks a lot Andre..
Will get back to you.. After verifying the docs 

-Original Message-
From: André Warnier [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 22, 2008 5:55 PM
To: Tomcat Users List
Subject: Re: Apache 2.0 Authentication LDAP

André Warnier wrote:
 Then, if there is something you do not understand, you can always come 
 back here with a precise question.

I forgot to say that if your problem is related to the Apache httpd setup of
LDAP, then you would be better off trying the Apache httpd support list.
Issues related to Tomcat, and even to Apache/Tomcat connectors like mod_jk,
will be handled here.
But for issues directly related to Apache httpd and the LDAP authentication
at the Apache httpd level, you will get better/faster answers at
[EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Migration from Tomcat 4.x to 5.5

2008-09-17 Thread Arun Raj Ramkumar
Hi all,
 
I need to migrate my web application from tomcat 4.1.29 to tomcat 5.5. I
have installed tomcat 5.5 with JDK 1.6 and deployed my web application, its
working fine. 
Tell me what are all the changes need to be done to connect apache 2.0 to
tomcat 5.5. Earlier  apache 2.0 server was connected to tomcat 4.1.29. 
In tomcat 4.1.29 server.xml there was the below tag for AJP connector
!-- Define an AJP 1.3 Connector on port 8009 --
Connector className=org.apache.ajp.tomcat4.Ajp1.3Connector
port=8029 minProcessors=5 maxProcessors=150
acceptCount=10 tomcatAuthentication=false debug=0/ 
 
Is there any similar kind of above tag  for tomcat 5.5 so that i can enable
authentication for my web application.
Also tell me wat are all the changes need to be done in mod_jk.conf ,
workers.properties and httpd.conf files as am migrating to tomcat5.5.
 
Its very urgent. Thanks in advance for ur help.
 
Regards,
Arun.


Memory Consumption - Using Process Commands from Java program in Tomcat

2008-07-01 Thread Arun Raj Ramkumar
Hi all,
 
Can you tell me the impact of using following commands in a java program in
tomcat? 
Will they take more memory?
Will they take time to release memory?
Is there any other way we can call? to find best way
print statments on the child perl will affect the parent tomcat?
 
Will the following consume more memory in jvm. is there any
alternate way of invoking process or running perl scripts.
 
Invoking perl programs like the following ways:
 
1) Process process = new ProcessBuilder(params).start();
 process.waitFor();
 
2) Runtime.getRuntime().exec(command+ );
 
3) RunCommand runcmd = new RunCommand(cmd);
runcmd.start();
 

-
 
For Example
 
public class RunCommand extends Thread {

private final Logger logger=Logger.getLogger(RunCommand.class);

private String commandStr = null;

public RunCommand (String commandStr) {

this.commandStr = commandStr;

}

public void run() {

try {

Process p = Runtime.getRuntime().exec(commandStr);

int exitVal = p.waitFor();

if (p.exitValue() != 0 ) {

logger.warn(CFG Extraction Exited abnormally + commandStr);

}

} catch (Exception e) {

logger.warn(e.getMessage());

}

}

public String getCommandStr() {

return commandStr;

}

public void setCommandStr(String commandStr) {

this.commandStr = commandStr;

}

} 



--

// - code snippet...

String[] params = new String[4];

String perlPath=props.getProperty(path.perl);

String perlProgPath=props.getProperty(path.cgi)+bp/BPOnDemand.pl;

String opFilePath=props.getProperty(path.tmp)+opFile;

params[0] = perlPath;

params[1] = perlProgPath;

params[2] = ipFilePath;

params[3] = opFilePath;

Process process = new ProcessBuilder(params).start();

process.waitFor();


-- 



Memory Consumption - Using Process Commands from Java program in Tomcat

2008-06-26 Thread Arun Raj Ramkumar
Hi all,
 
Can you tell me the impact of using following commands in a java program in
tomcat? 
Will they take more memory?
Will they take time to release memory?
Is there any other way we can call? to find best way
print statments on the child perl will affect the parent tomcat?
 
Invoking perl programs like the following ways:
 
1) Process process = new ProcessBuilder(params).start();
 process.waitFor();
 
2) Runtime.getRuntime().exec(command+ );
 
3) RunCommand runcmd = new RunCommand(cmd);
runcmd.start();
 

-
 
For Example
 
public class RunCommand extends Thread {

private final Logger logger=Logger.getLogger(RunCommand.class);

private String commandStr = null;

public RunCommand (String commandStr) {

this.commandStr = commandStr;

}

public void run() {

try {

Process p = Runtime.getRuntime().exec(commandStr);

int exitVal = p.waitFor();

if (p.exitValue() != 0 ) {

logger.warn(CFG Extraction Exited abnormally + commandStr);

}

} catch (Exception e) {

logger.warn(e.getMessage());

}

}

public String getCommandStr() {

return commandStr;

}

public void setCommandStr(String commandStr) {

this.commandStr = commandStr;

}

}



Regarding tomcat installation

2008-06-23 Thread Arun Raj Ramkumar
 
Hi ,
I want to install tomcat 5.5 in my home PC. Which distribution should i
download from apache website , as there are many versions available. I
downloade windows installer service , but am not able to start , stop the
server as there is no batch file available in that version. It meant i have
to run it as a service everytime. Also tell me how to configure my each
applications to differnt ports for example (app1 - 8080, app2 - 9080, app3 -
9081) etc using tomcat 5.5. What exactly is binary distribution how to go
about installing it. Reply me ASAP. Thanks in advance.
 
Regards,
Arun.