Hi,

we include .../WEB-INF/classes of the webapp in question in the tomcat
classpath at startup the following way:

-Djava.class.path=.....;.../WEB-INF/classes;....

Regards
Max

> -----Urspr�ngliche Nachricht-----
> Von: Rajib Das [mailto:rajibd@;anshinsoft.com]
> Gesendet: Donnerstag, 7. November 2002 07:53
> An: 'OJB Users List'
> Betreff: RE: Still Problem ..Pls help
> 
> 
> Hi Deepak, 
> It didn't solve my problem. What I understand it is taking 
> the absolute
> path from where the application is running here it is 
> TOMCAT.BAT ......I
> don't know why?
> 
> Regards
> Rajib
> 
> RAJIB: INITIALIZING THE APPLICATION SERVLET
> [BOOT] INFO: OJB.properties:
> file:/C:/jakarta-tomcat-3.2.3/bin/WEB-INF/classes/OJB.properties
> [BOOT] ERROR: Cannot get OJB properties file, use default settings!
> RAJIB : OPENING DATASOURCE
> [DEFAULT] INFO: OJB Descriptor Repository:
> file:/C:/jakarta-tomcat-3.2.3/bin/rep
> ository.xml
> [DEFAULT] FATAL: C:\jakarta-tomcat-3.2.3\bin\repository.xml 
> (The system
> cannot f
> ind the file specified)
> java.io.FileNotFoundException:
> C:\jakarta-tomcat-3.2.3\bin\repository.xml (The s
> ystem cannot find the file specified)
>         at java.io.FileInputStream.open(Native Method)
>         at java.io.FileInputStream.<init>(FileInputStream.java:59)
>         at
> sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection
> .java:64)
>         at
> sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLCon
> nection.java:128)
>         at java.net.URL.openStream(URL.java:793)
>         at
> org.apache.crimson.parser.InputEntity.init(InputEntity.java:209)
>         at
> org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:470)
>         at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
>         at
> org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
> 
>         at
> org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:387)
> 
>         at
> org.apache.ojb.broker.metadata.RepositoryPersistor.buildRepository(Un
> known Source)
>         at
> org.apache.ojb.broker.metadata.RepositoryPersistor.readFromFile(Unkno
> wn Source)            
> 
> 
> 
> -----Original Message-----
> From: Deepak Kaul [mailto:kdeepak@;in.ibm.com] 
> Sent: Thursday, November 07, 2002 11:07 AM
> To: OJB Users List
> Subject: Re: Problem ..Pls help
> 
> 
> Hi,
> 
> Try doing this:
> 
>             System.setProperty("OJB.properties","WEB-INF/classes/
> OJB.properties");
> 
> Regards,
> Deepak
> 
> 
> 
> |---------+---------------------------->
> |         |           "Rajib Das"      |
> |         |           <rajibd@anshinsof|
> |         |           t.com>           |
> |         |                            |
> |         |           11/07/2002 10:51 |
> |         |           AM               |
> |         |           Please respond to|
> |         |           "OJB Users List" |
> |         |                            |
> |---------+---------------------------->
>  
> >-------------------------------------------------------------
> ----------
> ---------------------------------------|
>   |
> |
>   |       To:       <[EMAIL PROTECTED]>
> |
>   |       cc:
> |
>   |       Subject:  Problem ..Pls help
> |
>   |
> |
>   |
> |
>  
> >-------------------------------------------------------------
> ----------
> ---------------------------------------|
> 
> 
> 
> Hi,
> 
> 
> 
> I've deployed OBJ in TOMACAT 3.2.3.  I have put the OBJ.properties
> ,repository.xml in WEB-INF/classes directory ?. But tomcat is 
> searching
> in Bin directory for those ?
> 
> 
> 
> The error I'm getting ?
> 
> 
> 
> 
> 
> [BOOT] INFO: OJB.properties:
> file:/C:/jakarta-tomcat-3.2.3/bin/OJB.properties
> 
> [BOOT] ERROR: Cannot get OJB properties file, use default settings!
> 
> [DEFAULT] INFO: OJB Descriptor Repository:
> file:/C:/jakarta-tomcat-3.2.3/bin/rep
> 
> ository.xml
> 
> [DEFAULT] FATAL: C:\jakarta-tomcat-3.2.3\bin\repository.xml 
> (The system
> cannot f
> 
> ind the file specified)
> 
> java.io.FileNotFoundException:
> C:\jakarta-tomcat-3.2.3\bin\repository.xml (The s
> 
> ystem cannot find the file specified)
> 
>         at java.io.FileInputStream.open(Native Method)
> 
>         at java.io.FileInputStream.<init>(FileInputStream.java:59)
> 
>         at
> sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection
> 
> .java:64)
> 
> 
> 
> Regards
> 
> Rajib
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:ojb-user-help@;jakarta.apache.org>
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ojb-user-help@;jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>

Reply via email to