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
|