You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Balaji <ba...@india.adventnet.com> on 2003/04/02 14:20:33 UTC
Using the ServerFactory
Hi ,
The following code returns me a null object for ServerFactory. I assume
that accessing ServerFactory would help me get all the details of the
Tomcat Server. Is my assumption right??
server = ServerFactory.getServer();
if(server == null)
System.out.println("Server is null");
Any help would be appreciated.
Thanks
Bala
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: Using the ServerFactory
Posted by Balaji <ba...@india.adventnet.com>.
Hi,
Tx for your reply. But this doesnt work.
Is there any other way to do it?
Thanks
Bala
At 04:59 AM 4/2/2003 -0800, you wrote:
>in order for you to be able to access this code, your jar would have to be
>inside of server/lib/
>
>because of security reasons, tomcat doesn't share the classloader with with
>tomcat webapps.
>
>Filip
>
> > -----Original Message-----
> > From: Balaji [mailto:balaji@india.adventnet.com]
> > Sent: Wednesday, April 02, 2003 4:21 AM
> > To: Tomcat Users List
> > Subject: Using the ServerFactory
> >
> >
> > Hi ,
> >
> > The following code returns me a null object for ServerFactory. I assume
> > that accessing ServerFactory would help me get all the details of the
> > Tomcat Server. Is my assumption right??
> >
> >
> > server = ServerFactory.getServer();
> > if(server == null)
> > System.out.println("Server is null");
> >
> > Any help would be appreciated.
> >
> > Thanks
> > Bala
> >
> >
> > ---------------------------------------------------------------------
> > 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
RE: Using the ServerFactory
Posted by Filip Hanik <ma...@filip.net>.
in order for you to be able to access this code, your jar would have to be
inside of server/lib/
because of security reasons, tomcat doesn't share the classloader with with
tomcat webapps.
Filip
> -----Original Message-----
> From: Balaji [mailto:balaji@india.adventnet.com]
> Sent: Wednesday, April 02, 2003 4:21 AM
> To: Tomcat Users List
> Subject: Using the ServerFactory
>
>
> Hi ,
>
> The following code returns me a null object for ServerFactory. I assume
> that accessing ServerFactory would help me get all the details of the
> Tomcat Server. Is my assumption right??
>
>
> server = ServerFactory.getServer();
> if(server == null)
> System.out.println("Server is null");
>
> Any help would be appreciated.
>
> Thanks
> Bala
>
>
> ---------------------------------------------------------------------
> 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