Hello World!
Soy nuevo en el foro.
Estoy tratando de migrar una aplicación WEB basada en APPFUSE y con Spring, Hibernate, Struts ,postgres y ant 1.7 como compilador.
Ahora bien, luego de mucho leer encontré que solo sería necesario realizar un deploy del archivo war resultante que funciona a la perfección en el tomcat pero no así en el Glassfish.
Leyendo fui resolviendo algunos inconvenientes que se me presentaron hasta que llegué a esta situación y no estoy pudiendo avanzar.
El servidor Glassfish está instalado con las configuraciones por defecto sin ningún framework o jar adicional.
Alguien pasó por algo similar o consiguió realizar la migración?
Sería necesario realizar configuraciones en archivos o en mi compilador para que pueda interpretar que la compilación será para el Glassfish y no el Tomcat?
Gracias de antemano!
Esto me muestra en el log del servidor al tratar de realizar el deploy
ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: py.miaplicacion.webapp.listener.StartupListener at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:5332) at com.sun.enterprise.web.WebModule.start(WebModule.j ava:498) at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:917) at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:901) at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:733) at com.sun.enterprise.web.WebContainer.loadWebModule( WebContainer.java:2018) at com.sun.enterprise.web.WebContainer.loadWebModule( WebContainer.java:1669) at com.sun.enterprise.web.WebApplication.start(WebApp lication.java:109) at org.glassfish.internal.data.EngineRef.start(Engine Ref.java:130) at org.glassfish.internal.data.ModuleInfo.start(Modul eInfo.java:269) at org.glassfish.internal.data.ApplicationInfo.start( ApplicationInfo.java:301) at com.sun.enterprise.v3.server.ApplicationLifecycle. deploy(ApplicationLifecycle.java:461) at com.sun.enterprise.v3.server.ApplicationLifecycle. deploy(ApplicationLifecycle.java:240) at org.glassfish.deployment.admin.DeployCommand.execu te(DeployCommand.java:389) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.ex ecute(CommandRunnerImpl.java:348) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCo mmand(CommandRunnerImpl.java:363) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCo mmand(CommandRunnerImpl.java:1085) at com.sun.enterprise.v3.admin.CommandRunnerImpl.acce ss$1200(CommandRunnerImpl.java:95) at com.sun.enterprise.v3.admin.CommandRunnerImpl$Exec utionContext.execute(CommandRunnerImpl.java:1291) at com.sun.enterprise.v3.admin.CommandRunnerImpl$Exec utionContext.execute(CommandRunnerImpl.java:1259) at org.glassfish.admin.rest.ResourceUtil.runCommand(R esourceUtil.java:214) at org.glassfish.admin.rest.ResourceUtil.runCommand(R esourceUtil.java:207) at org.glassfish.admin.rest.resources.TemplateListOfR esource.createResource(TemplateListOfResource.java :148) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.jersey.spi.container.JavaMethodInvokerFact ory$1.invoke(JavaMethodInvokerFactory.java:60) at com.sun.jersey.server.impl.model.method.dispatch.A bstractResourceMethodDispatchProvider$ResponseOutI nvoker._dispatch(AbstractResourceMethodDispatchPro vider.java:205) at com.sun.jersey.server.impl.model.method.dispatch.R esourceJavaMethodDispatcher.dispatch(ResourceJavaM ethodDispatcher.java:75) at com.sun.jersey.server.impl.uri.rules.HttpMethodRul e.accept(HttpMethodRule.java:288) at com.sun.jersey.server.impl.uri.rules.SubLocatorRul e.accept(SubLocatorRule.java:134) at com.sun.jersey.server.impl.uri.rules.RightHandPath Rule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.SubLocatorRul e.accept(SubLocatorRule.java:134) at com.sun.jersey.server.impl.uri.rules.RightHandPath Rule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.ResourceClass Rule.accept(ResourceClassRule.java:108) at com.sun.jersey.server.impl.uri.rules.RightHandPath Rule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.RootResourceC lassesRule.accept(RootResourceClassesRule.java:84) at com.sun.jersey.server.impl.application.WebApplicat ionImpl._handleRequest(WebApplicationImpl.java:146 9) at com.sun.jersey.server.impl.application.WebApplicat ionImpl._handleRequest(WebApplicationImpl.java:140 0) at com.sun.jersey.server.impl.application.WebApplicat ionImpl.handleRequest(WebApplicationImpl.java:1349 ) at com.sun.jersey.server.impl.application.WebApplicat ionImpl.handleRequest(WebApplicationImpl.java:1339 ) at com.sun.jersey.server.impl.container.grizzly.Grizz lyContainer._service(GrizzlyContainer.java:182) at com.sun.jersey.server.impl.container.grizzly.Grizz lyContainer.service(GrizzlyContainer.java:147) at org.glassfish.admin.rest.adapter.RestAdapter.servi ce(RestAdapter.java:148) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service( GrizzlyAdapter.java:179) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath (HK2Dispatcher.java:117) at com.sun.enterprise.v3.services.impl.ContainerMappe r$Hk2DispatcherCallable.call(ContainerMapper.java: 354) at com.sun.enterprise.v3.services.impl.ContainerMappe r.service(ContainerMapper.java:195) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(P rocessorTask.java:849) at com.sun.grizzly.http.ProcessorTask.doProcess(Proce ssorTask.java:746) at com.sun.grizzly.http.ProcessorTask.process(Process orTask.java:1045) at com.sun.grizzly.http.DefaultProtocolFilter.execute (DefaultProtocolFilter.java:228) at com.sun.grizzly.DefaultProtocolChain.executeProtoc olFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(Defau ltProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(Defau ltProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(Htt pProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(Pr otocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(Selec tionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:7 1) at com.sun.grizzly.util.AbstractThreadPool$Worker.doW ork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run (AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: py.myaplicacion.webapp.listener.StartupListener at org.apache.catalina.core.StandardContext.addListen er(StandardContext.java:2743) at org.apache.catalina.core.StandardContext.addApplic ationListener(StandardContext.java:1966) at com.sun.enterprise.web.TomcatDeploymentConfig.conf igureApplicationListener(TomcatDeploymentConfig.ja va:235) at com.sun.enterprise.web.TomcatDeploymentConfig.conf igureWebModule(TomcatDeploymentConfig.java:94) at com.sun.enterprise.web.WebModuleContextConfig.star t(WebModuleContextConfig.java:274) at com.sun.enterprise.web.WebModuleContextConfig.life cycleEvent(WebModuleContextConfig.java:172) at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:149) at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:5329) ... 62 more Caused by: java.lang.ClassNotFoundException: py.myaplicacion.webapp.listener.StartupListener at org.glassfish.web.loader.WebappClassLoader.loadCla ss(WebappClassLoader.java:1509) at org.glassfish.web.loader.WebappClassLoader.loadCla ss(WebappClassLoader.java:1359) at org.apache.catalina.core.StandardContext.loadListe ner(StandardContext.java:4806) at com.sun.enterprise.web.WebModule.loadListener(WebM odule.java:1599) at org.apache.catalina.core.StandardContext.addListen er(StandardContext.java:2740)