It may be due to different class loader loading the same bean during 
Hot deployment.

When JBOSS Starts up, it will load all the beans using (IMHO, Not Sure)
Default classloader and anything which is re-deployed may be getting
Loaded using different class loader.

So, When you refer to the same bean again, it is a different object as
It is loaded by another class loader.

If you are storing the remote/local ref in some instance variable of
Servlet then also it is possible as the object you are trying to refer
no
Longer is same as it is reloaded by different class loader.

May be I am off the mark.

-saroj


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:jboss-user-admin@;lists.sourceforge.net] On Behalf Of Jaydeep
Dhar
Sent: Friday, October 25, 2002 8:54 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] JBOSS-EJB HOT DEPLOYMENT PROBLEM


Hi,
I am using jboss 3.0.3 integrated with jetty web server.
I am getting following problem during devlepment of simple application.
1) I have developed a simple staless session bean and putted the .jar
file
in deploy directory. It works fine when i call it from the servlet but
once
I change anything thing in EJB and replace into the deploy directory, it
give following error when i call it from the same servlet.
20:48:44,171 INFO  [STDOUT]
GENERAL_EXCEPTIONjava.lang.ClassCastException
20:48:44,203 WARN  [jbossweb] WARNING: Exception for /test/servlet/Hello
java.lang.NullPointerException
        at Hello.doGet(Hello.java:52)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

During replacement of jar it is showing Bean deployed properly.  IS the
above problem is due to hot deployement becouse if i restart the server
then everything works fine and the changes in bean also get reflected.

2) I have created a application directory which basically contain the
jsp
file and servlet and placed it into the deploy directory.when i try to
invoke any of the component, the server doesn't get it and give error.
But
if I create the war file of that application and place into the the
deploy
directory, than it works fine. Is it necessary to creat war file to run
it.


pls respond to above mail as I need it urgently.




-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

**************************Disclaimer************************************************** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.

****************************************************************************************



Reply via email to