> The problem I still have now is where do I put the
> server.xml file


The whole point of the o.a.c.startup.Embedded is that it
allows you to do a lot of the server setup work by
hand. So you don't need server.xml at all.

Are you getting some error message that says you need it?
Can you give a little background on why you're using
Embedded?


> At the moment it is in the C:\EmbeddedTomcat along with
> the compiled EmbeddedTomcat.java file
> EmbeddedTomcat.class


Do you have a binary or a source build of Tomcat? If
you've got the source, then take a look at
o.a.c.startup.Embedded.  You can just modify the existing
class to fit your needs instead of writing another one. You
can then build it using the normal Tomcat build, and test it
using this (or the windows equiv):

 $ bin/statup.sh embedded

Then, once you get it working, you can take a look at how
the startup and build scripts work, and move your code out
into another directory. This would be much easier than doing
an external build, at least as a first pass.


>  When I run the program with :

>   java EmbeddedTomcat

> I get the error message Exception in thread "main"
> java.lang.NoClassDefFoundError: EmbeddedTomcat
> 

You have classpath problems, and that's kind of bad,
because you're going to need to be something of a
classpath wizard to get all this working. See "just modify
Embedded and use the normal build" suggestion above.


> I copied the catalina.jar file along with a number of
> other jars into c:\2sdk1.4.0\jre\lib\ext


You definitely don't want to do that. If you're doing an
external build, I suggesting manually (and tediously)
setting your classpath to point to jars in Catalina's
common/lib and server/lib. Note that the required jars
change from version to version, so you may have to do some
experimenting.

I've got a sample build environment for
doing exactly this sort of thing (building new Valves and
Authenticators, etc, in external directories). It's
currently set up to work against cvs HEAD instead of 4.0,
though. Email me privately if you'd like a copy.


-- 
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to