I think you should probably try to upgrade from jserv. I don't think it's
been supported for at least a year or two. I've never worked with it and
can't help any more.

dave

On Fri, 19 Apr 2002, Shalaka Chaudhari wrote:
>                          I tried to compile the DataServlet.java and it
> gives errors. I put a similar code in there esp. the one statement:
> 
> DataServlet.java:53: cannot resolve symbol
> symbol  : method getResource  (java.lang.String)
> location: interface javax.servlet.ServletContext
>            
> JDO.loadConfiguration(getServletContext().getResource(database).toString(),
> this.getClass().getClassLoader());
> 
> I am getting the same error if I put a similar statement in my code.
> 
> Can u help me with this please??
> 
> I really need to get this thing working.
> 
> Thanks,
> 
> Shalaka.
> 
> >From: Dave Weis
> >Reply-To: [EMAIL PROTECTED]
> >To: [EMAIL PROTECTED]
> >Subject: Re: [castor-dev] castor properties file and servlets
> >Date: Thu, 18 Apr 2002 07:32:31 -0500
> >
> >
> >Shalaka Chaudhari wrote:
> > > I am working on UNIX and I am using Apache JServ. I have
> > > written an HTTP client to make repetitive calls to the servlet on the
> > > server to stress test my application. When i run my application as a
> > > standalone, it works fine. When it runs as a servlet it does not seem
> > > to find the database.xml, mapping.xml files req. to set JDO config.
> > > and loadMapping.
> > > I tried putting them in different directories like : public_html,
> > > servlets, my home directory and also tried out different combinations
> > > of the classpath. It does not work!!!
> > > I do not know what to do? Where do I put these files and my
> > > application .xml file like Person.xml so that the servlet (running on
> > > Apache Jserv) can load and read from it.
> > > How should it be specified in the jdo.setConfiguration() and
> > > mapping.loadMapping() ?
> >
> >I couldn't figure this out either, so I wrote a servlet and set
> >load-on-startup that will get JDO configured. I put a copy of it at
> >http://www.sjdjweis.com/java/castor/
> >
> >That should steer you in the correct direction.
> >
> >dave
> >
> >
> > > >From: "Rajesh Kalluri manduca"
> > > >Reply-To: [EMAIL PROTECTED]
> > > >To: [EMAIL PROTECTED]
> > > >Subject: Re: [castor-dev] castor properties file and servlets
> > > >Date: Wed, 17 Apr 2002 14:20:23 -0400
> > > >
> > > >Hi Shalka,
> > > >
> > > >If you have your "server" application of the client server setup as
> > > WAR file
> > > >structure, place your castor.properties in WEB-INF/classes. What
> > > web/app
> > > >server are you using. And just of curiosity what kind of cleints are
> > > you
> > > >writing to talk to the servlets.
> > > >
> > > >Regards
> > > >Rajesh
> > > > -----Original Message-----
> > > > From: Shalaka Chaudhari [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, April 17, 2002 12:54 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [castor-dev] castor properties file and servlets
> > > >
> > > >
> > > > Hi,
> > > > I am using Castor XML and JDO in a client server setup using
> > > >servlets. Can anyone pl. tell me as to where to put the
> > > castor.properteis
> > > >file so that the properties will be picked up by the servlet??
> > > >
> >
> >--
> >Dave Weis
> >businessolver, Inc.
> >[EMAIL PROTECTED]
> >http://www.businessolver.com/
> >
> >-----------------------------------------------------------
> >If you wish to unsubscribe from this mailing, send mail to
> >[EMAIL PROTECTED] with a subject of:
> > unsubscribe castor-dev
> >
> 
> ________________________________________________________________________________
> Join the world�s largest e-mail service with MSN Hotmail. Click Here
> 
> 

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to