Re: Dependancy Madness: Struts 2.2.1 spring 2.5 (preferably later ie: 3) and JPA2 backed with Hibernate

2010-12-21 Thread Maurizio Cucchiara
It looks like there is a spring library conflict.
Though at first glance would seem a spring issue, could you post the
list of the lib directory (probably there will be more than one spring
library version)

2010/12/20 Ken McWilliams ken.mcwilli...@aerose.com:
 I'm experiencing issues upgrading the struts2-spring-2-jpa-ajax demo
 found here
 http://struts.apache.org/2.2.1/docs/struts-2-spring-2-jpa-ajax.html

 I've set up quite a few 2.2.1 projects I've just had a hard time
 understanding the spring/hibernate dependencies. I don't suppose anyone
 has an updated version of this demo (Struts 2.2.1, jpa 2, spring
 (anything that works) =)

 With the above project I followed:
 http://struts.apache.org/2.2.1/docs/create-struts-2-web-application-using-maven-to-manage-artifacts-and-to-build-the-application.html

 So I removed struts2-core and struts2-spring-plugin and added back the
 2.2.1 version of the struts2-spring-plugin (because it adds back
 struts2-core) and added javasssist (although there is still an older
 version because of the hibernate dependency) added log4j dependency and
 xml file and switched to using the
 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
 filter.

 I'm getting at this moment:

 * HERE DOWN IS EXCEPTIONS **

 SEVERE: PWC1306: Startup of context /quickstart_upgrade-0.1-SNAPSHOT
 failed due to previous errors
 SEVERE: PWC1305: Exception during cleanup after start failed
 org.apache.catalina.LifecycleException: PWC2769: Manager has not yet
 been started
        at
 org.apache.catalina.session.StandardManager.stop(StandardManager.java:892)
        at
 org.apache.catalina.core.StandardContext.stop(StandardContext.java:5456)
        at com.sun.enterprise.web.WebModule.stop(WebModule.java:530)
        at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:5284)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:499)
        at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)
        at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
        at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
        at
 com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1947)
        at
 com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1619)
        at
 com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)
        at
 org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
        at
 org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
        at
 org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)
        at
 com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339)
        at
 com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
        at
 org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl
 $1.execute(CommandRunnerImpl.java:305)
        at
 com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
        at
 com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.access
 $900(CommandRunnerImpl.java:83)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl
 $ExecutionContext.execute(CommandRunnerImpl.java:1235)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl
 $ExecutionContext.execute(CommandRunnerImpl.java:1224)
        at
 com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
        at
 com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
        at
 com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
        at
 com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
        at
 com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
        at
 com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
        at
 com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
        at
 com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
        at
 com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
        at
 com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
        at
 com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
        at
 com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
        at
 com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
        at
 com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
        at
 com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
    

Re: Dependancy Madness: Struts 2.2.1 spring 2.5 (preferably later ie: 3) and JPA2 backed with Hibernate

2010-12-21 Thread Ken McWilliams
I took your advice, there were to different versions of spring. Then did
the rest of the hacking needed to upgrade struts 2.0.6 with dojo to
2.2.1. 

Now on my list:
1) Change the demo to use jQuery + stuts2-json-plugin
2) Upgrade spring to 3+
3) Upgrade Hibernate and jpa to support JPA 2.
4) See if I can get the demo put back up on the struts wiki (saving
someone like me a lot of time!)

Again thank you so much!

On Tue, 2010-12-21 at 10:04 +0100, Maurizio Cucchiara wrote:
 It looks like there is a spring library conflict.
 Though at first glance would seem a spring issue, could you post the
 list of the lib directory (probably there will be more than one spring
 library version)
 
 2010/12/20 Ken McWilliams ken.mcwilli...@aerose.com:
  I'm experiencing issues upgrading the struts2-spring-2-jpa-ajax demo
  found here
  http://struts.apache.org/2.2.1/docs/struts-2-spring-2-jpa-ajax.html
 
  I've set up quite a few 2.2.1 projects I've just had a hard time
  understanding the spring/hibernate dependencies. I don't suppose anyone
  has an updated version of this demo (Struts 2.2.1, jpa 2, spring
  (anything that works) =)
 
  With the above project I followed:
  http://struts.apache.org/2.2.1/docs/create-struts-2-web-application-using-maven-to-manage-artifacts-and-to-build-the-application.html
 
  So I removed struts2-core and struts2-spring-plugin and added back the
  2.2.1 version of the struts2-spring-plugin (because it adds back
  struts2-core) and added javasssist (although there is still an older
  version because of the hibernate dependency) added log4j dependency and
  xml file and switched to using the
  org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
  filter.
 
  I'm getting at this moment:
 
  * HERE DOWN IS EXCEPTIONS **
 
  SEVERE: PWC1306: Startup of context /quickstart_upgrade-0.1-SNAPSHOT
  failed due to previous errors
  SEVERE: PWC1305: Exception during cleanup after start failed
  org.apache.catalina.LifecycleException: PWC2769: Manager has not yet
  been started
 at
  org.apache.catalina.session.StandardManager.stop(StandardManager.java:892)
 at
  org.apache.catalina.core.StandardContext.stop(StandardContext.java:5456)
 at com.sun.enterprise.web.WebModule.stop(WebModule.java:530)
 at
  org.apache.catalina.core.StandardContext.start(StandardContext.java:5284)
 at com.sun.enterprise.web.WebModule.start(WebModule.java:499)
 at
  org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)
 at
  org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
 at
  org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
 at
  com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1947)
 at
  com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1619)
 at
  com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)
 at
  org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
 at
  org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
 at
  org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)
 at
  com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339)
 at
  com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
 at
  org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
 at com.sun.enterprise.v3.admin.CommandRunnerImpl
  $1.execute(CommandRunnerImpl.java:305)
 at
  com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
 at
  com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
 at com.sun.enterprise.v3.admin.CommandRunnerImpl.access
  $900(CommandRunnerImpl.java:83)
 at com.sun.enterprise.v3.admin.CommandRunnerImpl
  $ExecutionContext.execute(CommandRunnerImpl.java:1235)
 at com.sun.enterprise.v3.admin.CommandRunnerImpl
  $ExecutionContext.execute(CommandRunnerImpl.java:1224)
 at
  com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
 at
  com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
 at
  com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
 at
  com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
 at
  com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
 at
  com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
 at
  com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
 at
  com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
 at
  com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
 at
  

Dependancy Madness: Struts 2.2.1 spring 2.5 (preferably later ie: 3) and JPA2 backed with Hibernate

2010-12-20 Thread Ken McWilliams
I'm experiencing issues upgrading the struts2-spring-2-jpa-ajax demo
found here
http://struts.apache.org/2.2.1/docs/struts-2-spring-2-jpa-ajax.html

I've set up quite a few 2.2.1 projects I've just had a hard time
understanding the spring/hibernate dependencies. I don't suppose anyone
has an updated version of this demo (Struts 2.2.1, jpa 2, spring
(anything that works) =) 

With the above project I followed:
http://struts.apache.org/2.2.1/docs/create-struts-2-web-application-using-maven-to-manage-artifacts-and-to-build-the-application.html

So I removed struts2-core and struts2-spring-plugin and added back the
2.2.1 version of the struts2-spring-plugin (because it adds back
struts2-core) and added javasssist (although there is still an older
version because of the hibernate dependency) added log4j dependency and
xml file and switched to using the
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
filter.

I'm getting at this moment:

* HERE DOWN IS EXCEPTIONS **

SEVERE: PWC1306: Startup of context /quickstart_upgrade-0.1-SNAPSHOT
failed due to previous errors
SEVERE: PWC1305: Exception during cleanup after start failed
org.apache.catalina.LifecycleException: PWC2769: Manager has not yet
been started
at
org.apache.catalina.session.StandardManager.stop(StandardManager.java:892)
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:5456)
at com.sun.enterprise.web.WebModule.stop(WebModule.java:530)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:5284)
at com.sun.enterprise.web.WebModule.start(WebModule.java:499)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
at
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1947)
at
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1619)
at
com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)
at
org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
at
org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
at
org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
at
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
at com.sun.enterprise.v3.admin.CommandRunnerImpl
$1.execute(CommandRunnerImpl.java:305)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access
$900(CommandRunnerImpl.java:83)
at com.sun.enterprise.v3.admin.CommandRunnerImpl
$ExecutionContext.execute(CommandRunnerImpl.java:1235)
at com.sun.enterprise.v3.admin.CommandRunnerImpl
$ExecutionContext.execute(CommandRunnerImpl.java:1224)
at
com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
at
com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
at
com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
at
com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
at
com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
at
com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at com.sun.grizzly.util.AbstractThreadPool
$Worker.doWork(AbstractThreadPool.java:330)
at com.sun.grizzly.util.AbstractThreadPool
$Worker.run(AbstractThreadPool.java:309)
at java.lang.Thread.run(Thread.java:636)

SEVERE: ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: