This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Embedding Tomcat in a Java application... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Embedding Tomcat in a Java application..." Watch "Embedding Tomcat in a Java application..." New topic
Author

Embedding Tomcat in a Java application...

George Thomas
Ranch Hand

Joined: Oct 06, 2000
Posts: 35
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

Joined: Jan 10, 2002
Posts: 60740
    
  65

Out of the blue thought: is something else (including another Tomcat instance) already running that is listening on port 8080?
hth,
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
George Thomas
Ranch Hand

Joined: Oct 06, 2000
Posts: 35
Nope,
All tomcat services are shut down.
I even tried port 9090 but to no avail.
Thanks,
George.
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

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 ]

Regards, Rene Larsen
Dropbox Invite
George Thomas
Ranch Hand

Joined: Oct 06, 2000
Posts: 35
Thank you Rene Larsen!
That did it!!!
 
wood burning stoves
 
subject: Embedding Tomcat in a Java application...
 
Similar Threads
Apache Web Server & (Tomcat or JBoss)
start/stop tomcat
JSP/Servlet library for standalone application?
restart tomcat from remote
Starting Tomcat 5 using API