tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Challa Ramesh Babu <challaram...@yahoo.com>
Subject datasource
Date Fri, 21 Sep 2001 08:40:34 GMT
hi,

i am encountering naming exception, null exception
etc.

i am using tomcat 3.2.3 ver and my application is 

from a servlet i have to display records from a
databse table (db2) using data source.

i am using ibm visual age for java tool.

i hope i'll get good reponse in this regard.

comming to descriptor file, in what file i have to
enter environment properties particularly
java:comp/env, either in 

webapp/example/web-inf/web.xml   
webapp/admin/web-inf/web.xml
webapp/root/web-inf/web.xml
conf/web.xml

and finally what to enter in conf.server/xml

i tried several methods for the past one week but i am
getting same error.

Error in Naming Exception :
javax.naming.NoInitialContextException: Need to
specify class name in environment or system property,
or as an applet parameter, or in an application
resource file:  java.naming.factory.initial
Context log: path="" Error in datasource.DatSrcServlet
service() : null
 java.lang.NullPointerException
	java.lang.Throwable()
	java.lang.Exception()
	java.lang.RuntimeException()
	java.lang.NullPointerException()
	void
datasource.DatSrcServlet.doGet(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
	void
datasource.DatSrcServlet.doGet(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
	void
javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
	void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
	void
org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.Request,
org.apache.tomcat.core.Response)
	void
org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.HttpServletRequestFacade,
org.apache.tomcat.core.HttpServletResponseFacade)
	void
org.apache.tomcat.servlets.InvokerServlet.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
	void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
	void
org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.Request,
org.apache.tomcat.core.Response)
	void
org.apache.tomcat.core.ContextManager.service(org.apache.tomcat.core.Request,
org.apache.tomcat.core.Response)
	void
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(org.apache.tomcat.service.TcpConnection,
java.lang.Object [])
	void
org.apache.tomcat.service.TcpConnectionThread.run()
	void java.lang.Thread.run()

Context log: path="" Error: Calling servlet
Wrapper(tomcat.errorPage
S:org.apache.tomcat.servlets.DefaultErrorPage)
Context log: path="" <b>Internal Servlet
Error:</b><br>
<pre>
java.lang.NullPointerException
	java.lang.Throwable()
	java.lang.Exception()
	java.lang.RuntimeException()
	java.lang.NullPointerException()
	void
datasource.DatSrcServlet.doGet(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
	void
datasource.DatSrcServlet.doGet(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
	void
javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
	void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
	void
org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.Request,
org.apache.tomcat.core.Response)
	void
org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.HttpServletRequestFacade,
org.apache.tomcat.core.HttpServletResponseFacade)
	void
org.apache.tomcat.servlets.InvokerServlet.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
	void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
	void
org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.Request,
org.apache.tomcat.core.Response)
	void
org.apache.tomcat.core.ContextManager.service(org.apache.tomcat.core.Request,
org.apache.tomcat.core.Response)
	void
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(org.apache.tomcat.service.TcpConnection,
java.lang.Object [])
	void
org.apache.tomcat.service.TcpConnectionThread.run()
	void java.lang.Thread.run()

i request you to give ur valuable suggestions
regarding this.

thanks and regards

challa

thanks and regards 

challa



____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

Mime
View raw message