Hi,
I have a running project on the Java EE server which i want to migrate to glassfish.
The project requires some jdbc databases which i have configured correctly and they are giving out a successfull ping.
Now i create a .war file for my web application and try to deploy it on the glassfish but i get a warning :
[b]
Deployment has succeeded with following warning, please look at the log file for details
Error occurred during application loading phase. The application will not run properly. Please fix your application and redeploy. WARNING: com.sun.enterprise.deployment.backend.IASDeploymentException: ContainerBase.addChild: start: LifecycleException: java.lang.ClassNotFoundException: com.service2media.m2locate.cellid.ConfigInit com.sun.enterprise.deployment.backend.IASDeploymentException: ContainerBase.addChild: start: LifecycleException: java.lang.ClassNotFoundException: com.service2media...[/b]
and the server.log file contain the following errors :
[b]
#|2010-10-13T12:35:24.101+0200|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=21;_ThreadName=Thread-52;_RequestID=5e37a71e-bf2b-4618-8ff1-ecc9f8e57cb8;|com.sun.enterprise.admin.event.AdminEventListenerException: ContainerBase.addChild: start: LifecycleException: java.lang.ClassNotFoundException: com.service2media.m2locate.cellid.ConfigInit
at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:188)
at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:278)
at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:1005)
at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:992)
at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:470)
at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:182)
at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:231)
at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
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.start(PEDeploymentService.java:609)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:653)
at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:773)
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.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:159)
at com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:538)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalStateException: ContainerBase.addChild: start: LifecycleException: java.lang.ClassNotFoundException: com.service2media.m2locate.cellid.ConfigInit
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:992)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:973)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:704)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1627)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1232)
at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:182)
... 33 more
|#]
[#|2010-10-13T12:35:24.102+0200|WARNING|sun-appserver2.1|javax.enterprise.system.tools.admin|_ThreadID=21;_ThreadName=Thread-52;ContainerBase.addChild: start: LifecycleException: java.lang.ClassNotFoundException: com.service2media.m2locate.cellid.ConfigInit;_RequestID=5e37a71e-bf2b-4618-8ff1-ecc9f8e57cb8;|ADM5603:Event listener error [ContainerBase.addChild: start: LifecycleException: java.lang.ClassNotFoundException: com.service2media.m2locate.cellid.ConfigInit]|#]
[#|2010-10-13T12:35:24.105+0200|WARNING|sun-appserver2.1|javax.enterprise.system.tools.admin|_ThreadID=21;_ThreadName=Thread-52;ContainerBase.addChild: start: LifecycleException: java.lang.ClassNotFoundException: com.service2media.m2locate.cellid.ConfigInit;_RequestID=5e37a71e-bf2b-4618-8ff1-ecc9f8e57cb8;|ADM1075:Error on listening event:[ContainerBase.addChild: start: LifecycleException: java.lang.ClassNotFoundException: com.service2media.m2locate.cellid.ConfigInit]|#]
[/b]
Am i missing out any .jar files or something?
Somebody told me about the JNDIPropertiesFactory.jar library to include but not sure if that is the case or even how to include it ?
Any help on the matter will be greatly appreciated.
[Message sent by forum member 'tali1981']
http://forums.java.net/jive/thread.jspa?messageID=485037