tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris" <flusspoto...@softhome.net>
Subject Re: why only put resource file to "$TC$\shared\classes", did TC found it?
Date Wed, 14 Jul 2004 15:32:16 GMT
Sorry for not enough info.

> what is 't' ?
"t" is a Javabeans (in package somepackage) which uses the resource file
"Application.properties"

----- Original Message ----- 
From: "Mike Curwen" <g_dev9xq@globallyboundless.com>
To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
Sent: Wednesday, July 14, 2004 10:18 PM
Subject: RE: why only put resource file to "$TC$\shared\classes", did TC
found it?


> what is 't' ?
>
>
> > -----Original Message-----
> > From: Chris [mailto:flusspotomac@softhome.net]
> > Sent: Wednesday, July 14, 2004 6:24 AM
> > To: Tomcat Users List
> > Subject: why only put resource file to "$TC$\shared\classes",
> > did TC found it?
> >
> >
> > Howdy,
> > I am developing webapp using TC4.1.27 , Eclipse 3.0 and
> > Lomboz 3.0, In one of my webapp's bean class, I want to get a
> > resource file by :
> >
> > URL u = t.getClass().getResource("/Application.properties");
> >
> > my bean class  put to WEB-INF\classes\somepackage\,  and the
> > webapp was deployed by an xml file under directory
> > $TC$\webapps , It is strange the only put resource
> > file(Application.properties) to "$TC$\shared\classes", did TC
> > found it.
> >
> > I tried putting it to WEB-INF\classes,  it could not be
> > found. I tried putting it to WEB-INF\classes\somepackage,  it
> > could not be found. I tried putting it to Eclipse's project
> > directory,  it could not be found.
> >
> > Any idea?  Putting resource file to "$TC$\shared\classes"  is
> > a bad idea I think.:)
> >
> > Best Regards
> > Chris
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message