Re: unable to access comm ports on apache tomcat 6.0.18
Hi, Thank you for your response. I dont the communication api version i think it is 2.0. I searched for latest version but i could not find it for windows OS. I get it from some uploader site. My WEB-INF\LIB has following jar files (1)commons-logging-1.1.1.jar (2)el-api (3)jakarta-oro-2.0.8 (4)jasper (5)jasper-el (6)jasper-jdt (7)jigadmin (8)jigedit (9)jigsaw (10)jmimemagic-0.1.0 (11)jsp-api log4j-1.2.16 (12)log4j-over-slf4j-1.6.1 (13)sax (14)slf4j-api-1.6.1 (15)slf4j-jcl-1.6.1 (16)smsj-20051126 (17)Tidy tomcat-coyote (18)tomcat-dbcp (19)tomcat-i18n-es (20)tomcat-i18n-fr (21)tomcat-i18n-ja (22)xerces xmlsec-1.3.0 xp - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: unable to access comm ports on apache tomcat 6.0.18
hi, Thank you for the response. I am sure that no other programs using the port.I am suspecting that Tomcat not loading the jar file. I got same error while using the api coomons.fileupload for uploading the files to server.I put the all the required jar files in my project.But it is telling that Class not found.Tell me if u have any idea. Thank you. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: unable to access comm ports on apache tomcat 6.0.18
Hi , i am exporting war file using ecclipse ide(Ecclipse has option to export .war file). I am starting tomcat service runner(tomcat6.exe) and my server.xml file is ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / Listener className=org.apache.catalina.core.JasperListener / Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / Documentation at /docs/jndi-resources-howto.html GlobalNamingResources Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina !-- Executor name=tomcatThreadPool namePrefix=catalina-exec- maxThreads=150 minSpareThreads=4/ -- Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / !-- Connector executor=tomcatThreadPool port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / -- Connector port=2 maxHttpHeaderSize=8192 maxThreads=150 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true sslProtocol=TLS SSLEnabled=true SSLCertificateFile=C:\apache-tomcat-6.0.18\bin\tomcatcert.pem SSLCertificateKeyFile=C:\apache-tomcat-6.0.18\bin\tomcatkey.pem / Connector port=8009 protocol=AJP/1.3 redirectPort=8443 / Engine name=Catalina defaultHost=localhost !--For clustering, please take a look at documentation at: /docs/cluster-howto.html (simple how to) /docs/config/cluster.html (reference documentation) -- !-- Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster/ -- !-- The request dumper valve dumps useful debugging information about the request and response data received and sent by Tomcat. Documentation at: /docs/config/valve.html -- !-- Valve className=org.apache.catalina.valves.RequestDumperValve/ -- Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false !-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html -- !-- Valve className=org.apache.catalina.authenticator.SingleSignOn / -- !-- Access log processes all example. Documentation at: /docs/config/valve.html -- !-- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ -- /Host /Engine /Service /Server - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: unable to access comm ports on apache tomcat 6.0.18
Hi Pid, Thank you for your response. Not only for this comunication api, if i put thr jar files in WEBAPPS/MY APPLICATION/WENINF/LIB it is showing the No Class found. plese help me. Whw]at are rthe chnages i have to do? Thank you. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: unable to access comm ports on apache tomcat 6.0.18
Hi friend, I can communicate with modem from othe java application.The problem is occuring only after deploy in apache tomcat. I am using ECLIPSE IDE. Ecclipse ide can run our web application using apache tomcat for debugging purpose.When i run my application from ide it is working fine but the exception occur after deploying on tomcat. Please help me. Thank you. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: unable to access comm ports on apache tomcat 6.0.18
Hi, Thank you for your response and very sorry for the in complete details of exception. My problem is I want to send SMS to mobile clients using GSM modem. Modem is connected to PC through COM port. I installed JAVA COMMUNICATION API. I am using ecclipse ide. I am able to run my web application from ecclipse ide by enabling apache tomcat server from the ide(By using option run as server in Ecclipse). But after deploying my application in apache tomcat server i am unamblt access comm ports. I am using APACHE TOMCAT 1.6.0.18 and JAVA 1.6 on Windows xp platform. My part of code is: SerialComm com1 = new SerialComm(null ,COM1); com1.setBitRate(115200); COM1.OPEN(); // HERE I AM GETTING EXCEPTION My full stack trace is java.lang.ClassNotFoundException: javax.comm.PortInUseException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) at com.nokia.test.demo.ConfigureTerminal.doPost(ConfigureTerminal.java:105) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509) at java.lang.Thread.run(Unknown Source) Please help me. Thank you. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: unable to access comm ports on apache tomcat 6.0.18
Hi, Thank you for your response and very sorry for the in complete details of exception. My problem is I want to send SMS to mobile clients using GSM modem. Modem is connected to PC through COM port. I installed JAVA COMMUNICATION API. I am using ecclipse ide. I am able to run my web application from ecclipse ide by enabling apache tomcat server from the ide(By using option run as server in Ecclipse). But after deploying my application in apache tomcat server i am unamblt access comm ports. I am using APACHE TOMCAT 1.6.0.18 and JAVA 1.6 on Windows xp platform. My part of code is: SerialComm com1 = new SerialComm(null ,COM1); com1.setBitRate(115200); COM1.OPEN(); // HERE I AM GETTING EXCEPTION My full stack trace is java.lang.ClassNotFoundException: javax.comm.PortInUseException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) at com.nokia.test.demo.ConfigureTerminal.doPost(ConfigureTerminal.java:105) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509) at java.lang.Thread.run(Unknown Source) Please help me. Thank you. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Connection Leak in java - Tomcat 6.0.18
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
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
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
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
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
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
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
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.