tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Problems deploying an example application
Date Thu, 26 Aug 2004 13:02:32 GMT

You're doing several things wrong.

>database via OJB. I successfully built ojb-servlet.war

Successfully, perhaps, but incorrectly.

>- I dropped ojb-servlet.war into Tomcat's webapps
>directory. When Tomcat starts up, it explodes the WAR
>into webapps/ojb-servlet.
>- I added the following context to Tomcat's server.xml
><Context path="" docBase="ojb-servlet"

Unless you really want it deployed twice, EITHER turn off autoDeploy and
keep your Context definition, OR just drop the WAR in webapps and use
the default path of /ojb-servlet.

>- I added the following to Tomcat's web.xml (For some
>reason, there's no web.xml in ojb-servlet/WEB_INF):

That's why I said you created the WAR incorrectly: a valid WAR file
contains a deployment descriptor, i.e. WEB-INF/web.xml.  BTW it's
WEB-INF not WEB_INF.  So revisit how you're creating this WAR and make
sure the web.xml is there with your servlet declaration and mapping.

> Can't read repository file

Check the code it's using in getTableIterator.  Is it a
getResource/getResourceAsStream, or a lookup?

Yoav Shapira

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message