hi
firstly, i'm really sorry if there is a thread about this issue but i have found nothing from my searching except this(
http://forums.java.net/jive/thread.jspa?messageID=366605񙠍) which is not answered anyway.
here is the situation;
i have glassfish v2.1 installed on my server and i deploy my enterprise application as an ear file from the admin console. everything works fine upto here.
hovewer, i make changes on the project frequently. i have to upload them to the server and make the glassfish see the changes immediately. there is no problem with jsp files; glassfish compile and use them as soon as i change. but in the case of the class files this is not possible. the best solution to this seems to be dynamic reloading as i understand from the documentation and my google searchs.
here is my first question; is it the best solution or is there any other method to make glassfish see the changes on the class files?
i decided to use dynamic reload and it works successfully on my local computer. nevertheless, it doesn't work on my server. when i try to create a file named '.reload' in the deployed application directory, it undeploy the application but not redeploy. sometimes(really very rarely) i can create the .reload file and make the glassfish to reload the application. however, in this case, when i first touch the .reload file i face this problem again.
in the logs, there is some entries says 'failed to reload' but i can't get what the problem really is. some of the logs i think related is here:
[#|2009-11-13T17:15:48.251+0200|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=36;_ThreadName=Timer-6;_RequestID=86041406-5e91-4041-9334-ab7967f79883;|Exception occured in J2EEC Phasejava.lang.RuntimeException: Cannot resolve reference Unresolved Ejb-Ref ejb.session.customer.AdministrationServiceBean/memberService_at_jndi: @null_at_ejb.session.common.MemberService_at_Session@null
com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [ProjectEE] -- Cannot resolve reference Unresolved Ejb-Ref ejb.session.customer.AdministrationServiceBean/memberService_at_jndi: @null_at_ejb.session.common.MemberService_at_Session@null
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:406)
at com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:359)
at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:226)
at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:280)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:298)
at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:584)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:381)
at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:364)
at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:477)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
at $Proxy1.invoke(Unknown Source)
at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
at com.sun.enterprise.deployment.autodeploy.AutoDirReDeployer.invokeDeploymentService(AutoDirReDeployer.java:103)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployJavaEEArchive(AutoDeployer.java:564)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:495)
at com.sun.enterprise.deployment.autodeploy.AutoDirReDeployer.redeploy(AutoDirReDeployer.java:78)
at com.sun.enterprise.server.ApplicationManager.reload(ApplicationManager.java:585)
at com.sun.enterprise.server.ReloadMonitor.run(ReloadMonitor.java:168)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: java.lang.RuntimeException: Cannot resolve reference Unresolved Ejb-Ref ejb.session.customer.AdministrationServiceBean/memberService_at_jndi: @null_at_ejb.session.common.MemberService_at_Session@null
at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:430)
at com.sun.enterprise.deployment.EjbDescriptor.visit(EjbDescriptor.java:2069)
at com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:735)
at com.sun.enterprise.deployment.Application.visit(Application.java:1819)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.validate(ApplicationArchivist.java:520)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:840)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:794)
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:365)
... 33 more
|#]
[#|2009-11-13T17:15:48.252+0200|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=36;_ThreadName=Timer-6;Error loading deployment descriptors for module [ProjectEE] -- Cannot resolve reference Unresolved Ejb-Ref ejb.session.customer.AdministrationServiceBean/memberService_at_jndi: @null_at_ejb.session.common.MemberService_at_Session@null
;_RequestID=86041406-5e91-4041-9334-ab7967f79883;|"DPL8011: autodeployment failure while deploying the application : Error loading deployment descriptors for module [ProjectEE] -- Cannot resolve reference Unresolved Ejb-Ref ejb.session.customer.AdministrationServiceBean/memberService_at_jndi: @null_at_ejb.session.common.MemberService_at_Session@null
"|#]
[#|2009-11-13T17:15:48.252+0200|INFO|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=36;_ThreadName=Timer-6;ProjectEE;|CORE5003: [ProjectEE] failed to reload!|#]
My final question; what does it arise from? is there something wrong with glassfish or did i do something wrong? anyway, how can i get rid of this situation?
any idea or insight thougth to be helpful will really be appreciated.
thanks a lot...
kemal
[Message sent by forum member 'mkemal' ]
http://forums.java.net/jive/thread.jspa?messageID=371815