tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ramkumar <ramku...@efftronics.com>
Subject Re: unable to access comm ports on apache tomcat 6.0.18
Date Sat, 09 Oct 2010 15:00:02 GMT
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message