Hi,
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"
>debug="0"></Context>

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.

>java.io.IOException: Can't read repository file
>'/Users/davide/Desktop/jakarta-tomcat-5.0.27/webapps/ojb-servlet/WEB-
>INF/classes/repository.xml'
>
>org.apache.ojb.servlet.TestServlet.getTableIterator(Unknown
>Source)

Check the code it's using in getTableIterator.  Is it a
getResource/getResourceAsStream, or a java.io.File-based 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to