pooler.ini: FileNotFoundException

Help
Anonymous
2011-09-01
2012-12-13

  • Anonymous
    2011-09-01

    Hi!

    I'm learning OS and trying to develop a simple three tier application with NetBeans 7.0 and tomcat 6. The server console shows that OS controller has been initialized and completed such as:


    Thu Sep 01 11:18:59 BRT 2011
    in org.openswing.swing.server.Controller.init():
    Initialized log manager


    Sep 1, 2011 11:18:59 AM org.apache.catalina.startup.HostConfig deployDescriptor
    INFO: Deploying configuration descriptor OS_web.xml
    Action classes request names: login ************                     (this line is a system.out.println() I've put in my ActionClasses class to be sure that servlet controller initialize them)


    Thu Sep 01 11:18:59 BRT 2011
    in org.openswing.swing.server.Controller.init():
    Servlet Initialization completed.


    after all, I'm getting:

    SEVERE: Error while creating connection pooler: file not found in
    C:\ApacheSoftwareFoundation\apache-tomcat-6.0.32\bin\pooler.ini
    java.io.FileNotFoundException: C:\Users\Rafael\Documents\NetBeansProjects\OS_web\build\web\WEB-INF\classes\pooler.ini (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at org.openswing.swing.server.PoolerConnectionSource.initPooler(PoolerConnectionSource.java:105)
    at org.openswing.swing.server.ConnectionManager.initConnectionSource(ConnectionManager.java:79)
    at org.openswing.swing.server.Controller.init(Controller.java:128)
    at javax.servlet.GenericServlet.init(GenericServlet.java:212)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4420)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4733)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:559)
    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1397)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
    at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1500)
    at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:849)
    at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:351)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:619)
    Sep 1, 2011 10:01:08 AM org.apache.catalina.core.ApplicationContext log
    INFO: SessionListener: contextDestroyed()
    Sep 1, 2011 10:01:08 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: contextDestroyed()
    Sep 1, 2011 10:01:13 AM org.apache.catalina.core.ApplicationContext log

    I've tried to put manually that file in the specified path, but no success.

    please, can someone help me? :)

    thanks

    Rafael

     

  • Anonymous
    2011-09-01

    I forgot, and my web.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
        <servlet>
            <servlet-name>controller</servlet-name>
            <servlet-class>org.openswing.swing.server.Controller</servlet-class>
            <init-param>
                <param-name>actionClasses</param-name>
                <param-value>server.ActionClasses</param-value>
            </init-param>
           <init-param>
                <param-name>connectionSource</param-name>
                <param-value>org.openswing.swing.server.PoolerConnectionSource</param-value>
            </init-param>
            <init-param>
                <param-name>loginAction</param-name>
                <param-value>org.openswing.swing.server.LoginAction</param-value>
            </init-param>
            <init-param>
                <param-name>objectsReceiver</param-name>
                <param-value>org.openswing.swing.util.server.HessianObjectReceiver</param-value>
            </init-param>
            <init-param>
                <param-name>sessionIdGenerator</param-name>
                <param-value>org.openswing.swing.server.DefaultSessionIdGenerator</param-value>
            </init-param>
            <init-param>
                <param-name>logger</param-name>
                    <param-value>org.openswing.swing.logger.server.ConsoleLogger</param-value>
            </init-param>
            <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
            <servlet-name>controller</servlet-name>
            <url-pattern>/controller</url-pattern>
        </servlet-mapping>
    </web-app>

     
  • mcarniel
    mcarniel
    2011-09-24

    pooler.ini file is required by PoolerConnectionSource class: it contains info related to the creation of database connections, used by PoolerConnectionSource (a db connection pooler).
    An example of that file is:

    driverClass=org.hsqldb.jdbcDriver
    user=sa
    password=
    url=jdbc:hsqldb:mem:dddddddddd

    Please read javadoc info provided in the PoolerConnectionSource  source file.