OracleConnectionPoolDataSource creates too many connections

2004-03-03 Thread Rudi Doku
Hi All,

My web application is using up all connections after running for a while.
It's quite obvious that I'm not using the connection pool as it was designed
to be used. The only way I can get these connections back is by restarting
the Tomcat. I have ojdbc14.jar in the following directories:
$CATALINA_HOME/commons/lib directory 
$CATALINA_HOME/webapps/myWebApp/WEB-INF/lib.

This code creates my connection Pool


   private void createConnectionPool(  ) {
  try {

// Create a OracleConnectionPoolDataSource instance.
connectionPoolDS = new OracleConnectionPoolDataSource(  );

String url = jdbc:oracle:thin:@194.26.151.17:1521:mosaic;

connectionPoolDS.setURL( url );

// Set the user name.
connectionPoolDS.setUser(mosaicuser);

// Set the password.
connectionPoolDS.setPassword(mosa1c);

  }
   catch ( SQLException ex ) { // Catch SQL errors.
//context.log( ex.toString(  ) ); // log errors.
  }
}


This code creates a PooledConnection.
-

public static synchronized PooledConnection getPooledConnection(){
try{
pooledconn = connectionPoolDS.getPooledConnection();

}catch(SQLException sqle){
sqle.printStackTrace();
}
return pooledconn;
}

In my LoginServlet, I create a new PooledConnection, which I add to the
Servlet Context:

PooledConnection pc = ConnectionFactory.getInstance.getPooledConnection();
ServletContext ctx = getServletContext();
ctx.setAttribute(pooled_conn, pc);

On an JSP Page:
ServletContext ctx = getServletContext();
PooledConnection pc = (PooledConnection)ctx.getAttribute(pooled_conn);

Connection con = pc.getConnection
//do a few things with the connection

try{
if (con != null){
con.close();
} // I'm assumingthis returns the connection to the Pool

}catch(SQLException sqle){
sqle.printStackTrace();
}

Any help to solve this mystery would be very much appreciated.

Kind Regards,

Rudi




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: OracleConnectionPoolDataSource creates too many connections

2004-03-03 Thread Rudi Doku
Really,

I have looked in web.xml and I can't seem to locate anything that is related
to database connections. The only settings related to connections that I can
see are related to JDBC realms.

-Original Message-
From: Arnab Chakravarty [mailto:[EMAIL PROTECTED]
Sent: 03 March, 2004 11:53 AM
To: Tomcat Users List
Subject: RE: OracleConnectionPoolDataSource creates too many connections


Possible problems could be:

- Connnections not getting closed
- The max concurrent request for tomcat had been reached (check the number
of connections in server.xml)

- AC

-Original Message-
From: Rudi Doku [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 03, 2004 2:34 PM
To: Tomcat Users List
Subject: OracleConnectionPoolDataSource creates too many connections
Importance: High


Hi All,

My web application is using up all connections after running for a while.
It's quite obvious that I'm not using the connection pool as it was designed
to be used. The only way I can get these connections back is by restarting
the Tomcat. I have ojdbc14.jar in the following directories:
$CATALINA_HOME/commons/lib directory 
$CATALINA_HOME/webapps/myWebApp/WEB-INF/lib.

This code creates my connection Pool


   private void createConnectionPool(  ) {
  try {

// Create a OracleConnectionPoolDataSource instance.
connectionPoolDS = new OracleConnectionPoolDataSource(  );

String url = jdbc:oracle:thin:@194.26.151.17:1521:mosaic;

connectionPoolDS.setURL( url );

// Set the user name.
connectionPoolDS.setUser(mosaicuser);

// Set the password.
connectionPoolDS.setPassword(mosa1c);

  }
   catch ( SQLException ex ) { // Catch SQL errors.
//context.log( ex.toString(  ) ); // log errors.
  }
}


This code creates a PooledConnection.
-

public static synchronized PooledConnection getPooledConnection(){
try{
pooledconn = connectionPoolDS.getPooledConnection();

}catch(SQLException sqle){
sqle.printStackTrace();
}
return pooledconn;
}

In my LoginServlet, I create a new PooledConnection, which I add to the
Servlet Context:

PooledConnection pc = ConnectionFactory.getInstance.getPooledConnection();
ServletContext ctx = getServletContext();
ctx.setAttribute(pooled_conn, pc);

On an JSP Page:
ServletContext ctx = getServletContext();
PooledConnection pc = (PooledConnection)ctx.getAttribute(pooled_conn);

Connection con = pc.getConnection
//do a few things with the connection

try{
if (con != null){
con.close();
} // I'm assumingthis returns the connection to the Pool

}catch(SQLException sqle){
sqle.printStackTrace();
}

Any help to solve this mystery would be very much appreciated.

Kind Regards,

Rudi




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: OracleConnectionPoolDataSource creates too many connections

2004-03-03 Thread Rudi Doku
Hi Ryan,

Thanks for the solution. I believe it's resolved my problem.

Rudi



-Original Message-
From: Ryan Lissack [mailto:[EMAIL PROTECTED]
Sent: 03 March, 2004 10:15 AM
To: 'Tomcat Users List'
Subject: RE: OracleConnectionPoolDataSource creates too many connections


Hi,

You still need to create a connection cache with that datasource, so
something like :

OracleConnectionPoolDataSource ocpds = new OracleConnectionPoolDataSource();
...
OracleConnectionCache oracleConnectionCache = new
OracleConnectionCacheImpl(ocpds);

You can then call the following to get connections from the pool :

oracleConnectionCache.getConnection();

Be sure to close all your connection when you are done so they are returned
to the pool.

Ryan.





-Original Message-
From: Rudi Doku [mailto:[EMAIL PROTECTED]
Sent: 03 March 2004 09:04
To: Tomcat Users List
Subject: OracleConnectionPoolDataSource creates too many connections
Importance: High


Hi All,

My web application is using up all connections after running for a while.
It's quite obvious that I'm not using the connection pool as it was designed
to be used. The only way I can get these connections back is by restarting
the Tomcat. I have ojdbc14.jar in the following directories:
$CATALINA_HOME/commons/lib directory 
$CATALINA_HOME/webapps/myWebApp/WEB-INF/lib.

This code creates my connection Pool


   private void createConnectionPool(  ) {
  try {

// Create a OracleConnectionPoolDataSource instance.
connectionPoolDS = new OracleConnectionPoolDataSource(  );

String url = jdbc:oracle:thin:@194.26.151.17:1521:mosaic;

connectionPoolDS.setURL( url );

// Set the user name.
connectionPoolDS.setUser(mosaicuser);

// Set the password.
connectionPoolDS.setPassword(mosa1c);

  }
   catch ( SQLException ex ) { // Catch SQL errors.
//context.log( ex.toString(  ) ); // log errors.
  }
}


This code creates a PooledConnection.
-

public static synchronized PooledConnection getPooledConnection(){
try{
pooledconn = connectionPoolDS.getPooledConnection();

}catch(SQLException sqle){
sqle.printStackTrace();
}
return pooledconn;
}

In my LoginServlet, I create a new PooledConnection, which I add to the
Servlet Context:

PooledConnection pc = ConnectionFactory.getInstance.getPooledConnection();
ServletContext ctx = getServletContext();
ctx.setAttribute(pooled_conn, pc);

On an JSP Page:
ServletContext ctx = getServletContext();
PooledConnection pc = (PooledConnection)ctx.getAttribute(pooled_conn);

Connection con = pc.getConnection
//do a few things with the connection

try{
if (con != null){
con.close();
} // I'm assumingthis returns the connection to the Pool

}catch(SQLException sqle){
sqle.printStackTrace();
}

Any help to solve this mystery would be very much appreciated.

Kind Regards,

Rudi




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problems Invalidating session

2004-03-03 Thread Rudi Doku
Hi All,

I create a session when a user is authenticated using the following code:

HttpSession session = request.getSession(true);
I do this in a loginservlet

When a user quits the application, there are redirected to a LogoutServlet
which redirects them to a jsp page, logout.jsp.

I have one line of code in logout.jsp :

session.invalidate().

Problem is that when I use the tomcat manager application to view the number
of sessions connected to the application, there is still a session, which in
my opinion, means that the session has not been invalidated.

Please help.


Met vriendelijke groet/Kind Regards,
Experian Nederland B.V.

Rudi Doku
Database Developer
Verheeskade 25
2521 BE Den Haag
phone: +31 (0) 70 440 4423

fax: +31 (0) 70 440 4040
e-mail: [EMAIL PROTECTED]
http://www.experian.nl
===
Information in this e-mail and any attachments are confidential and may not
be copied or used by anyone other than the addressee, nor disclosed to any
third party without our permission. There is no intention to create any
legally binding contract or other commitment through the use of this e-mail.
Experian Netherlands BV.
Registered office: Verheeskade 25, 2521 BE The Hague.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problems Invalidating session - II

2004-03-03 Thread Rudi Doku
Following my previous posting, I think I need to set the scope of my session
to application. How can I do this?

Met vriendelijke groet/Kind Regards,
Experian Nederland B.V.

Rudi Doku
Database Developer
Verheeskade 25
2521 BE Den Haag
phone: +31 (0) 70 440 4423

fax: +31 (0) 70 440 4040
e-mail: [EMAIL PROTECTED]
http://www.experian.nl
===
Information in this e-mail and any attachments are confidential and may not
be copied or used by anyone other than the addressee, nor disclosed to any
third party without our permission. There is no intention to create any
legally binding contract or other commitment through the use of this e-mail.
Experian Netherlands BV.
Registered office: Verheeskade 25, 2521 BE The Hague.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat exception - Please help

2004-02-27 Thread Rudi Doku
Hi,

I have recently started using ant in netbeans. I got most of my info from
the following tutorial:

http://www.netbeans.org/kb/articles/ant-webapps.html#customProject

For some unknown reason, I am not able to deploy my application. I get the
following error:

2004-02-27 10:45:42 WebappLoader[]: Deploying class
repositories to work directory
/root/.netbeans/3.5/tomcat406_base/work/Tomcat-Internal/localhost/_
2004-02-27 10:45:42 WebappLoader[]: Deploy JAR
/WEB-INF/lib/commons-fileupload-1.0.jar to
/home/rdoku/projects/mosadminproj/build/WEB-INF/lib/commons-fileupload-1.0.j
ar
2004-02-27 10:45:42 WebappLoader[]: Deploy JAR
/WEB-INF/lib/log4j-1.2.8.jar to
/home/rdoku/projects/mosadminproj/build/WEB-INF/lib/log4j-1.2.8.jar
2004-02-27 10:45:42 WebappLoader[]: Deploy JAR
/WEB-INF/lib/ojdbc14.jar to
/home/rdoku/projects/mosadminproj/build/WEB-INF/lib/ojdbc14.jar
2004-02-27 10:45:42 StandardManager[]: Seeding random
number generator class java.security.SecureRandom
2004-02-27 10:45:42 StandardManager[]: Seeding of
random number generator has been completed
2004-02-27 10:45:42 ContextConfig[]: Added
certificates - request attribute Valve
2004-02-27 10:45:43 StandardWrapper[:default]: Loading
container servlet default
2004-02-27 10:45:45 ApplicationDispatcher[]
Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at
org.apache.jsp.err$jsp._jspService(err$jsp.java:77)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWrapper
.service(IDEJspServlet.java:173)
at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFile(ID
EJspServlet.java:246)
at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJspSer
vlet.java:339)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:683)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:431)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:355)
at
org.apache.catalina.valves.ErrorDispatcherValve.custom(ErrorDispatcherValve.
java:391)
at
org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherValve.
java:305)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
at java.lang.Thread.run(Thread.java:534)
2004-02-27 10:46:25 ApplicationDispatcher[]
Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at
org.apache.jsp.err$jsp._jspService(err$jsp.java:77)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWrapper
.service(IDEJspServlet.java:173)
at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFile(ID
EJspServlet.java:246)
at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJspSer
vlet.java:339)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:683)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:431)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:355)
at
org.apache.catalina.valves.ErrorDispatcherValve.custom(ErrorDispatcherValve.
java:391)
at

Newbie Question Tomcat IIS

2002-03-07 Thread Rudi Doku

Hello,

I'm been using tomcat at home for the last couple of months. While searching 
through the newsgroups i've noticed that some people run Tomcat and IIS 
together.

Can anyone tell me why people do this and what they are aiming to achieve?



Kind Regards,

Rudi

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Problems Generating PDF from Servlet

2002-02-27 Thread Rudi Doku

Hello,

I am trying to develop a servlet that sends a PDF document to a web browser.
I get the following error when i try to display the PDF document:

2002-02-27 01:11:55 StandardContext[/docusoft]: Servlet /docusoft threw 
load() exception
javax.servlet.ServletException: Error instantiating servlet class 
com.docutech.viewer.web.ImageServlet
at org.apache.catalina.core.StandardWrapper.load(Unknown Source)
at org.apache.catalina.core.StandardContext.loadOnStartup(Unknown Source)
at org.apache.catalina.core.StandardContext.start(Unknown Source)
at org.apache.catalina.core.ContainerBase.start(Unknown Source)
at org.apache.catalina.core.StandardHost.start(Unknown Source)
at org.apache.catalina.core.ContainerBase.start(Unknown Source)
at org.apache.catalina.core.StandardEngine.start(Unknown Source)
at org.apache.catalina.core.StandardService.start(Unknown Source)
at org.apache.catalina.core.StandardServer.start(Unknown Source)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown Source)
at org.apache.catalina.startup.Catalina.process(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
- Root Cause -
java.lang.VerifyError: (class: com/docutech/viewer/web/ImageServlet, method: 
doPost signature: 
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) 
Incompatible object argument for function call
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at org.apache.catalina.core.StandardWrapper.load(Unknown Source)
at org.apache.catalina.core.StandardContext.loadOnStartup(Unknown Source)
at org.apache.catalina.core.StandardContext.start(Unknown Source)
at org.apache.catalina.core.ContainerBase.start(Unknown Source)
at org.apache.catalina.core.StandardHost.start(Unknown Source)
at org.apache.catalina.core.ContainerBase.start(Unknown Source)
at org.apache.catalina.core.StandardEngine.start(Unknown Source)
at org.apache.catalina.core.StandardService.start(Unknown Source)
at org.apache.catalina.core.StandardServer.start(Unknown Source)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown Source)
at org.apache.catalina.startup.Catalina.process(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)


My code looks like this

   ServletOutputStream  out = response.getOutputStream ();

//---
// Set the output data's mime type
//---

response.setContentType(application/pdf);  // MIME type for pdf 
doc

//---
// create an input stream from fileURL
//---

String fileURL = http://localhost/docusoft/jsp/forte-doc.pdf;;

//
// Content-disposition header - don't open in browser and
// set the Save As... filename.
// *There is reportedly a bug in IE4.0 which  ignores this...
//
response.setHeader(Content-disposition,  attachment; filename= 
+= forte-doc.pdf );

//-
BufferedInputStream  bis = null;
BufferedOutputStream bos = null;

try {
//URL url = new URL( http, PROXY_HOST, 
Integer.parseInt(PROXY_PORT), fileURL);
URL url = new URL(fileURL);

// Use Buffered Stream for reading/writing.
bis = new BufferedInputStream(url.openStream());
bos = new BufferedOutputStream(out);

byte[] buff = new byte[1];
int bytesRead;

// Simple read/write loop.
while(-1 != (bytesRead = bis.read(buff, 0, buff.length))) {
bos.write(buff, 0, bytesRead);
}

} catch(final MalformedURLException e) {
System.out.println ( MalformedURLException. );
throw e;
} catch(final IOException e) {
System.out.println ( IOException. );
throw e;
} finally {
if (bis != null)
bis.close();
if (bos != null)
bos.close();
}


}



Any help would be most appreciated.

Kind Regards,

Rudi






Ho can I make my URL shorter?

2002-02-25 Thread Rudi Doku

Hello,

I have a URL which is too long. I would appreciate it of someone could help 
me with the following queries:

1. Is it possible to confugure the application so I can remove the port 
8080 from the URL?

2. Can I declare an alias for com.docutech.viewer.web.LoginAction so I don't 
have to display the entire package? The action for my form is 
servlet/com.docutech.viewer.web.LoginAction

The following is displayed when i post my login page, login.jsp :

http://127.0.0.1:8080/docusoft/servlet/com.docutech.viewer.web.LoginAction.



Kind Regards,

Rudi Doku


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Ho can I make my URL shorter?

2002-02-25 Thread Rudi Doku

Hello reynir,

Thanks for your help.



Cheers,

Rudi Doku


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: AW: Ho can I make my URL shorter?

2002-02-25 Thread Rudi Doku

Thanks for the help Martin.

Regards,

Rudi Doku


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Newbie, JSQLConnectionPool Error - Help Required

2001-12-27 Thread Rudi Doku

Hello,

I am evaluating the j-netdirect sql connection pool driver JSQLConnectionPool.


I installed the package and successfully run the ExampleConnectionPool program.  

I have  copied some to  Create a JNDI context and bind it in the naming service, 
however the following exception is thrown whenever the execution reaches the following 
line :   ctx = new InitialContext(env);

The exception thrown is :  
Error:init JNDI  javax.naming.NoInitialContextException:  
Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception 
is java.lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory]

I'm not quite sure why this is happening since the Classpath has the following entry - 
C:\jdk1.3\lib\fscontext.jar;.


Below is the exact implementation of the method :

private void initJNDI() {
/* Create the file store first time - the file store holds the JNDI entries */
File root = new File(sFileStore);
if (!root.exists())
  root.mkdir();
/* Initialize JNDI - tell it to use the File Store provider */
Hashtable env = new Hashtable(100);
env.put(Context.INITIAL_CONTEXT_FACTORY,
  com.sun.jndi.fscontext.RefFSContextFactory);
env.put(Context.PROVIDER_URL, file:+sFileStore+/);
//env.put(Context.PROVIDER_URL, file:about.txt/);
/* Create a JNDI context and bind it in the naming service */
try {
  ctx = new InitialContext(env);
}
catch (javax.naming.NamingException e) {
  error(init JNDI , e);
}
  }



Any help would be very much appreciated.

Thanks,

RudiGet more from the Web.  FREE MSN Explorer download : http://explorer.msn.com



Newbie, JNDI Error - Help Required

2001-12-23 Thread Rudi Doku

Hello,

Can anyone please help me resolve this error message?
I have attached the class (ConnectionPool.java) which causes this exception 
to be raised.

Kind Regards,

Rudi


Error:init JNDI  javax.naming.NoInitialContextException: Cannot instantiate 
class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is 
java.lang.ClassNotFoundException: 
com.sun.jndi.fscontext.RefFSContextFactory]
Error:Register Datasources  java.lang.NullPointerException
JNDI Error:javax.naming.NoInitialContextException: Cannot instantiate class: 
com.sun.jndi.fscontext.RefFSContextFactory [Root exception is 
java.lang.ClassNotFoundException: 
com.sun.jndi.fscontext.RefFSContextFactory]
java.lang.IllegalStateException: pooled datasource has not been initialized
at 
com.docutech.viewer.db.ConnectionPool.getConnection(ConnectionPool.java:129)
at com.docutech.viewer.db.Test.main(Test.java:28)
Exception in thread main





_
Chat with friends online, try MSN Messenger: http://messenger.msn.com



ConnectionPool.java
Description: JavaScript source

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


Problems executing Conn Pool example that comes with JSQLConnect

2001-12-19 Thread Rudi Doku

Greetings,

I'm currently evaluating the JSQLConnect Driver. I downloaded jndi1_2_1.zip 
from the sun site, followed the instructions and installed it in the 
following directory - C:\jdk1.3\jre\lib\ext\jndi.jar; I also added this path 
to my classpath.

My problem is that I get the following exception when I run 
ExampleConnectionPool.java from the command line.

Error:init JNDI  javax.naming.NoInitialContextException: Cannot instantiate 
class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is java.
lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory]
Error:Register Datasources  java.lang.NullPointerException
JNDI Error:javax.naming.NoInitialContextException: Cannot instantiate class: 
com.sun.jndi.fscontext.RefFSContextFactory [Root exception is java.lang.C
lassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory]


Any feedback will be very much appreciated.

Cheers,

Rudi


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Problems executing Conn Pool example that comes with JSQLConnect

2001-12-19 Thread Rudi Doku

Hi Mark,

Thanks for the prompt response. The files you suggested i add (fscontext.jar 
 providerutil.jar) are not in the jndi1_2_1.zip. I am searching for them at 
the sun site. Any ideas where I can get them?

Cheers,
Rudi

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]