Mike:
Are using Iplanet with or without weblogic ?
if "with" , you JNDI name is "java:comp/env/your connection pool name".
Context conn = new InitalContext();
DataSource ds = (DataSource)conn.lookup("java:comp/env/your connection
pool name");
return ds.getConnection();
Albert Pi
Corp IS System Delivery
516-803-3762
>>> [EMAIL PROTECTED] 08/21/02 08:48AM >>>
Hi all!
Maybe someone can help me with this annoying problem.
When I try to load a datasource, my application server gives back a
null-value. of course, the next this is a very nice
nullpointerException...
I know the code is good, and on another servers, (that's running thesame
version of Iplanet, 6.0sp4) it works fine.
Just this one is doing nasty! I 've reinstalled it already a few
times, without any luck. Sun knowledgebase doesn't give me much either.
anyone had thesame problem ?
thanks in advance.
java.lang.NullPointerException
at com.netscape.server.jdbc.Driver.isThreadInLocalTxn(Unknown
Source)
at com.netscape.server.jdbc.DataSourceImpl.getConnection(Unknown
Source)
at com.netscape.server.jdbc.DataSourceImpl.getConnection(Unknown
Source)
at
be.vlaanderen.sbs.s6.datamanager.DataManager.getConnection(DataManager.java:119)
at
be.vlaanderen.sbs.s6.alternerendleren.model.Project.findAll(Compiled
Code)
at
be.vlaanderen.sbs.s6.alternerendleren.actions.ChooseProjectAction.myPerform(ChooseProjectAction.java:39)
at
be.vlaanderen.sbs.s6.alternerendleren.actions.GeneralAction.perform(GeneralAction.java:89)
at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
Source)
at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html