Link to home
Start Free TrialLog in
Avatar of vinayc25
vinayc25

asked on

Warning encountered when weblogic6.1 is restarted -

Hi Guys,

When I restart weblogic 6.1 I shows fiest the bean is deployed and then its warning as descrbed below -


1)<EJB Deploying file: alerts.jar>

2)Jul 4, 2002 12:42:39 PM IST> <Warning> <EJB> <varun> <myserver> <main> <system> <> <010001> <EJB Deployment: Alert cannot be redeployed while the server is running. AlertBean is located in the server's classpath.>


Please let me know the reason for this.

Thanks,
Vinay
Avatar of naidubs
naidubs

hi,
change the server running mode into production mode (in config.xml file) so that it  will allow to deploy at runtime.
If this problem occurs in production mode it is because the bean class has been specified in in the classpath of weblogic.  When weblogic starts the classloader loads the bean class causing anything specified in the classpath to not be auto deployed while the server is running.  The jar file for the bean shouldn't be in the classpath, nor should you have the bean class in any jar that is in the classpath.  

If the class is not specified in the classpath, then a child classloader is used which would allow auto/re-deployment at runtime. Here is a link on the weblogic classloader that may help.
http://e-docs.bea.com/wls/docs61/programming/packaging.html#1048725
ASKER CERTIFIED SOLUTION
Avatar of SpideyMod
SpideyMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial