Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Embedding Tomcat in a Java application...

 
George Thomas
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I've been trying to get the code from an article
on the O'Reilly site to work. It starts an instance of tomcat inside a java application.
For me, tomcat starts except a message is displayed "Couldn't create connector."
This is the result of the following statement:

Tomcat is running but cannot be reached using
http://localhost:8080/
Anybody try this?
Here is the url:
http://www.onjava.com/pub/a/onjava/2002/04/03/tomcat.html
Thanks,
George.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65221
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Out of the blue thought: is something else (including another Tomcat instance) already running that is listening on port 8080?
hth,
bear
 
George Thomas
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope,
All tomcat services are shut down.
I even tried port 9090 but to no avail.
Thanks,
George.
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should use the same connector as Tomcat 4.x use.

this is the jar-files i'm using:

Rene
[ March 12, 2003: Message edited by: Rene Larsen ]
 
George Thomas
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Rene Larsen!
That did it!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic