----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
What I see from your MyStartupServlet is that you do all the
initialization in your class constructor.
You should use the init method, that is beeing called by the
servlet engine, when the servlet is loaded.
Your problem probably arises at the time, when the class is loaded,
becuase there is no connection to the webserver
This should be the case later, wenn the servlet engine kicks the init
method.
This is a working example of such an init method...
/**
* Init while loading the Servlet
*/
public void init(ServletConfig config) throws ServletException
{
pool = PoolManager.getInstance();
}
/**
* Unload the Servlet
*/
public void destroy()
{
pool.release();
super.destroy();
}
Hope this helps.
Regards, Bruno
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]