tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikolaj Rydzewski <m...@ceti.pl>
Subject Re: unable to access comm ports on apache tomcat 6.0.18
Date Sat, 09 Oct 2010 15:56:42 GMT
ramkumar wrote:
>     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
>   
Are you able to communicate with modem at all? Not from within 
webapplication / tomcat?
Make sure you can do it, then try to deploy your code to tomcat.

-- 
Mikolaj Rydzewski <miki@ceti.pl>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message