tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ed Yu <e...@asgnet.psc.sc.edu>
Subject RE: Re[2]: Problem with a Bean
Date Thu, 27 Jul 2000 13:01:09 GMT
Try to make a directory under your context .../yourContext/WEB-INF/classes
and put your bean package eg. you have hello.bean:

.../yourContext/WEB-INF/classes/hello/bean.java
.../yourContext/WEB-INF/classes/hello/bean.class

> -----Original Message-----
> From:	Rui Oliveira [SMTP:oliveira@milu.ipn.pt]
> Sent:	Thursday, July 27, 2000 8:59 AM
> To:	tomcat-user@jakarta.apache.org
> Subject:	Re[2]: Problem with a Bean
> 
> Thx... It Worked...
> 
> 
> But Imagine that I have a directory named "c:\foobar" and that I want to
> create a new context that goes from "/foobar" how do I get beans from
> that directory?
> 
> Do I need to set that directory to execute beans in a configuration
> file?
> 
> The solution you gave works because it is under the directory "webapps" of
> tomcat, right?
> 
> Is there a way to run all of this outside tomcat's directory structure?
> 
> 
> Rui
> 
> On Thu, 27 Jul 2000 01:27:01 -0700 (PDT)
> Charles Sabourdin <sabourdin@yahoo.com> wrote:
> 
> > 
> > --- Rui Oliveira <oliveira@milu.ipn.pt> a écrit :
> > > hello,
> > > 
> > > 
> > > I'm trying to run an example with a bean. I've
> > > created a diferent
> > > context to my applications.
> > > 
> > > Somewhere inside the code of the JSP I have a
> > > call to a Bean. Where must
> > > I place that bean in order to run it? 
> > tomcat\webapps\myApplication\WEB-INF\classes
> > I think you can either put a jar file or class, I
> > personnally use only classes.
> > > Do I need to configure either Apache, Tomcat or
> > > "server.xml" in order to
> > > specify another class file location to the
> > > context I've defined? If so,
> > > how can I do it?
> > If you want to set a new Web application.
> > add
> >       <Context path="/myApplication"
> > docBase="webapps/myApplication" debug="0"
> > reloadable="true" ></Context>
> > > 
> > > Can someone help me?
> > hope that's help's.
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Get Yahoo! Mail - Free email you can access from anywhere!
> > http://mail.yahoo.com/
> > 

Mime
View raw message