Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

commapi and TomCat 5.5

Thread view: 
Dag Sunde - 18 Mar 2007 23:28 GMT
Is there any specific issues I should be aware of when
using the commapi from a servlet under TomCat 5.5.

That is, I'm using a vendor-provided jar-file, that depends
on comm.jar.

When I write a small test-app, everything is dandy. The app
opens the comm port "COM1", and communications works ok.

Running the same code in a web-app, I get a "Port not found"
(the code is copy/pasted from the test-app).

I have tried to put the "comm.jar" and "vendor.jar" in
...\webapps\myapp\WEB_INF\lib, and in
...common\lib

I've put the "win32comm.dll" both in "system32" and together
with the jar file, but to no avail...

When I run my test-app, I run it like this:
 java -cp D:\commapi\comm.jar;.\vendor.jar;. Test

Any ideas?

TIA...

Signature

Dag.

Dag Sunde - 21 Mar 2007 08:48 GMT
> Is there any specific issues I should be aware of when
> using the commapi from a servlet under TomCat 5.5.
[quoted text clipped - 17 lines]
> When I run my test-app, I run it like this:
>  java -cp D:\commapi\comm.jar;.\vendor.jar;. Test

Just in case others run into this:

I had forgot to copy the "javax.comm.properties" file,
so Tomcat/myApp couldn't see it...

Signature

Dag.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.