File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 61764
    
  67

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!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Embedding Tomcat in a Java application...