context variable

2005-02-03 Thread Didier McGillis
Hey everyone.
I'm brain dead or something but I am setting a variable to the servlet 
context.  Inside that there is a database connection and query of the 
database, however i need to throw a DataLayerException, and I'm not sure 
where.

CODE ##
public void init(ServletConfig config) throws ServletException{
Connection Connection = null;
Connection = ConnectionFactory.getConnection();
synchronized(Connection)
 Connection = ConnectionFactory.getConnection();  is where its asking for 
the Exception.

And Ben if this looks familar it is :)

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


context variable in web.xml does not work in tomcat 4

2002-04-29 Thread Jack Li

Hello all,
 
I have setup a context variable in web.xml below. It worked in tomcat 3.
After I upgraded to Tomcat 4, it doesn't work anymore and generated an xml
parse error message in log file. Any idea? 
 
context-param
  param-name
   myServerName
  /param-name
  param-value
   ABC
  /param-value
 /context-param

Thanks,
Jack Li 



Re: context variable in web.xml does not work in tomcat 4

2002-04-29 Thread Chris Faulkner

HI

I also had this problem. I moved the variables to the top of my web.xml and it worked. 
Honest.

It seems that TC 4 is fussy about the order of the entries.

Chris




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




RE: context variable in web.xml does not work in tomcat 4

2002-04-29 Thread Jack Li

Thanks, That is how I resolved my problem.

Jack

-Original Message-
From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 29, 2002 2:40 PM
To: Tomcat Users List
Subject: Re: context variable in web.xml does not work in tomcat 4


HI

I also had this problem. I moved the variables to the top of my web.xml and
it worked. Honest.

It seems that TC 4 is fussy about the order of the entries.

Chris




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

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