You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by pawan <pa...@apar.com> on 2003/05/13 14:49:51 UTC

tomcat 4.1.24 not reflecting the changes in java bean

Hello Everyone

I am using java beans in my jsp page. when i am changing in java beans its
not reflecting the changes in tomcat console output, unless i restart
tomcat.

Please help??


Pawan


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: tomcat 4.1.24 not reflecting the changes in java bean

Posted by Vernon <ve...@gatewaytech.com>.
You MUST reload it to have updated version up. Did you reload your app?

On Tue, 13 May 2003 18:19:51 +0530, pawan <pa...@apar.com> wrote:

> Hello Everyone
>
> I am using java beans in my jsp page. when i am changing in java beans 
> its
> not reflecting the changes in tomcat console output, unless i restart
> tomcat.
>
> Please help??
>
>
> Pawan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



-- 
Regards,

Vernon

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


how to load a property file in tomcat4.1.24???

Posted by pawan <pa...@apar.com>.
Hello Everyone,

in my application's web-inf/classes folder i have a package named "common"
in that i have a file "Alerter.java"

in which i am loading a property file in static block, by using the
ClassLoader.. now to load ALERT_CONFIG_FILE this file should eb in
classpath. so i have set the classpath to

C:\jakarta-tomcat-4.1.24\webapps\shyam\WEB-INF\classes

and i have put my file Shyam.config in there. But its giving error when i
call this class by a jsp page in tomcat.

Its working file if i use command line argument e.g.
C:\jakarta-tomcat-4.1.24\webapps\shyam\WEB-INF\classes>java common.Alerter

I think i need to set the CLASSPATH variable for tomcat window where all
console output comes.

Please help me how i can make it work?? Or is there any other alternative??

Thank you in advance.

***********************************************************************
Here is a part of source code
***********************************************************************


private static final String ALERT_CONFIG_FILE ="Shyam.config";

static
	{
        try
		{
            cfg =  getAlertConfig();
		}
		catch(Exception e){}
    }

 public static Properties getAlertConfig() throws IOException
	{

		Properties prop = new Properties();
		try
		{
			InputStream fin =
ClassLoader.getSystemResourceAsStream(ALERT_CONFIG_FILE);
			prop.load(fin);
			System.out.println("File Loaded Successfully");
		}
		catch(Exception e)
		{
			System.out.println("Either ALERT Configuration file: '"
+ALERT_CONFIG_FILE+"' Not found in CLASSPATH or it can not be read");
		}
		System.out.println("........"+prop);
		return prop;
    }


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: tomcat 4.1.24 not reflecting the changes in java bean

Posted by pawan <pa...@apar.com>.
i have checked with newer version of browser also but still its not working.
and even it seems that afetr restarting also it doesn't work sometime.

Please tell me how i can work with it??

Thank you


-----Original Message-----
From: Edward See (magicaLogic) [mailto:foxmagic@info.com.ph]
Sent: Tuesday, May 13, 2003 6:26 PM
To: Tomcat Users List; pawan.s@apar.com
Subject: RE: tomcat 4.1.24 not reflecting the changes in java bean


this always seem to be the problem.

but my tomcat 4.0.1 don't need to restart whenever bean has been recompiled.
just have a new instance of browser.

-----Original Message-----
From: pawan [mailto:pawan.s@apar.com]
Sent: Tuesday, May 13, 2003 8:50 PM
To: 'Tomcat Users List'
Subject: tomcat 4.1.24 not reflecting the changes in java bean


Hello Everyone

I am using java beans in my jsp page. when i am changing in java beans its
not reflecting the changes in tomcat console output, unless i restart
tomcat.

Please help??


Pawan


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: tomcat 4.1.24 not reflecting the changes in java bean

Posted by "Edward See (magicaLogic)" <fo...@info.com.ph>.
this always seem to be the problem.

but my tomcat 4.0.1 don't need to restart whenever bean has been recompiled.
just have a new instance of browser.

-----Original Message-----
From: pawan [mailto:pawan.s@apar.com]
Sent: Tuesday, May 13, 2003 8:50 PM
To: 'Tomcat Users List'
Subject: tomcat 4.1.24 not reflecting the changes in java bean


Hello Everyone

I am using java beans in my jsp page. when i am changing in java beans its
not reflecting the changes in tomcat console output, unless i restart
tomcat.

Please help??


Pawan


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org