tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Braswell, Sy " <KK2...@dfa.state.ny.us>
Subject RE: load-on-startup
Date Thu, 14 Sep 2000 14:38:45 GMT

>I guess ConnectionPool class is not a servlet class but a helper java
class..
>is it right? 
the ConnectionPool.class IS a servlet but tomcat wants to load it from the 
path:
/usr/local/tomcat/classes/...
i need to tell tomcat that this is a servlet and should be loaded from:
/usr/local/tomcat/webapps/bermPatSearch/WEB-INF/classes... path


-----------------------------------------------------------------------

i have a connection pool servlet that i would like loaded when tomcat
starts. i have tried using the following syntax in the web.xml file:

    <servlet>
         <servlet-nameConnectionPool</servlet-name>
         <servlet-class>berm.search.ConnectionPool</servlet-class>
         <load-on-startup>1</load-on-startup>
    </servlet>

1) im not sure if the ConnectionPool.class is suppose to be on the path
/usr/local/tomcat/classes/berm/search/ConnectionPool.class

or 

/usr/local/tomcat/webapps/bermPatSearch/WEB-
INF/classes/berm/search/ConnectionPool.class

if i do not put it in the path 
   /usr/local/tomcat/classes/berm/search/ConnectionPool.class
i get the error:
cannot load servlet name: ConnectionPool
cannot load servlet name: ConnectionPool
cannot load servlet name: ConnectionPool
cannot load servlet name: ConnectionPool
cannot load servlet name: ConnectionPool
cannot load servlet name: ConnectionPool

if i do put it on the path:
/usr/local/tomcat/classes/berm/search/ConnectionPool.class
i do not get the above error
but it does not load either.

2) which xml file does is go in?
/usr/local/tomcat/conf/web.xml
or
/usr/local/tomcat/webapps/bermPatSearch/WEB-INF/web.xml

i have tried all combinations of above with no luck...
any ideas?
is there another parameter that needs to be set?


-----Original Message-----
From: 전성기 [mailto:hannibal1638@hanmail.net]
Sent: Thursday, September 14, 2000 7:09 PM
To: @hanmail.net; Sy" <KK2269@dfa.state.ny.us>"@hanmail.net
Subject: 


I guess ConnectionPool class is not a servlet class but a helper java
class..
is it right? 

==================================================
우리 인터넷, Daum
평생 쓰는 무료 E-mail 주소 한메일넷
지구촌 한글 검색서비스 Daum FIREBALL
http://www.daum.net

Mime
View raw message