• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Tomcat CGI to lunch Java Jar Server  RSS feed

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey community,

I'm having a problem making a cgi to run my alredy packed and "ready-for-sale" Java Server, in jar compact fully functional when i run the jar in the windows environment.
Now im trying to make a cgi, on Tomcat6.0 WebServer via Eclipse, using a Dynamic Web Project with the strutcure(briefed):

>index.jsp (Where i have the links to the cgi's/bat's)

I have alredy sucessfuly seted Tomcat to run CGI, the prof of that is that i can execute helloworld.bat with no problems. The ServerRemoteStart.bat is as follow:

And it works fine if i copy paste it to the cmd, but when i click the link in the index to the ServerRemoteStart.bat i get the following error:

********* = HostName
The 3 last lines are my handling of the IOException(there's nothing alredy running on that port, runned Netstat -a -n -o to checked)

PS: i would like to change the server java code as least as possible, pref no change.

Does this problem as somthing to do with the tomcat environment ports? It's my first time using this kind of Server so realy have no other clue or sulution ideia here

Thanks in advance,
Rui Miranda

Rui Miranda
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Debug update, commented the part of the Java Server that was trowing the UnkownHostException(it was only used to print the host IP to the server console) and know i get the following exeception when trying to instanceate the ServerSocket:

Searched the ENTIRE WEB, no one as ever gotten the 126 error, my stated of mind is a mix of blessed but most of all extremly frusted, any clues ot there?
So I left, I came home, and I ate some pie. And then I read this tiny ad:
ScroogeXHTML - small and flexible RTF to HTML converter library
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!