update_archive maven goal throwing "Bad Parameters" error

59 views
Skip to first unread message

Kwatee Community

unread,
Oct 10, 2012, 10:24:05 AM10/10/12
to kwatee-c...@googlegroups.com
Hi,

I was trying to create new package versions and also update archives dynamically associated to that version using the new maven plugin. I am getting following error:

===================
[INFO] --- kwatee-maven-plugin:1.0.1:update_archive (default) @ jetty ---
[DEBUG] Configuring mojo net.kwatee.deploy.maven:kwatee-maven-plugin:1.0.1:update_archive from plugin realm ClassRealm[plugin>net.kwatee.deploy.maven:kwatee-maven-plugin:1.0.1, parent: sun.misc.Launcher$AppClassLoader@50d420eb]
[DEBUG] Configuring mojo 'net.kwatee.deploy.maven:kwatee-maven-plugin:1.0.1:update_archive' with basic configurator -->
[DEBUG] (s) file = /home/hudson/branding-1/dist/tar/jetty-Java-Proj-Branding-2-Jetty-11.tar.gz
[DEBUG] (s) package = Art-Jetty
[DEBUG] (s) serviceurl = http://admin:password@localhost:8080/kwatee
[DEBUG] (s) version = 11
[DEBUG] -- end configuration --
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.468s
[INFO] Finished at: Tue Sep 25 17:30:04 PDT 2012
[INFO] Final Memory: 22M/1504M
[INFO] ------------------------------------------------------------------------
[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal net.kwatee.deploy.maven:kwatee-maven-plugin:1.0.1:update_archive (default) on project jetty: Bad parameters
[DEBUG] Closing connection to remote
[ERROR] Failed to execute goal net.kwatee.deploy.maven:kwatee-maven-plugin:1.0.1:update_archive (default) on project jetty: Bad parameters -> [Help 1]
org
.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal net.kwatee.deploy.maven:kwatee-maven-plugin:1.0.1:update_archive (default) on project jetty: Bad parameters
at org
.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org
.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org
.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org
.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org
.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org
.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org
.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org
.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org
.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org
.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org
.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org
.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun
.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun
.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java
.lang.reflect.Method.invoke(Method.java:601)
at org
.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org
.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org
.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org
.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Bad parameters
at net
.kwatee.deploy.maven.kwatee_maven_plugin.UpdateArchiveGoal.doUpdate(UpdateArchiveGoal.java:124)
at net
.kwatee.deploy.maven.kwatee_maven_plugin.UpdateArchiveGoal.execute(UpdateArchiveGoal.java:7
at org
.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org
.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
=================================================



create_version goal works perfectly. After creating the version if I sequence update_archive it throws this bad parameters error. 

Please let me know if the following usage is correct in my pom file:

<plugin>
<groupId>net.kwatee.deploy.maven</groupId>
<artifactId>kwatee-maven-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>create_version</goal>
<goal>update_archive</goal>
</goals>
</execution>
</executions>
<configuration>
<serviceurl>http://admin:password@localhost:8080/kwatee</serviceurl>
<package>Scripts</package>
<version>${BUILD_NUMBER}</version>
<description>New version created by maven</description>
<file>../../../dist/tar/scripts-${JOB_NAME}-${BUILD_NUMBER}.tar.gz</file>
</configuration>
</plugin>



rkesara

Mac

unread,
Oct 10, 2012, 10:46:10 AM10/10/12
to kwatee-c...@googlegroups.com
Hi Rama,
 
I have pinpointed the location where the error message is generated but it is a bit odd because we never really expected this type of error. I've done a small change in a test version which you can download at http://download.kwatee.net/u/57315976/2.1.0alpha/kwatee.war. Could you try this and let me know if it works while I look at the root cause in more details?
 
thanks,
Mac

[quote]Thanks for a quick response. We are trying to creation version and upload archive following that create version call.
 
Following is the pom entry associated to my call:
............
<plugin>
                <groupId>net.kwatee.deploy.maven</groupId>
                <artifactId>kwatee-maven-plugin</artifactId>
                <executions>
                                <execution>
                                                <id>CreateVersion</id>
                                                <phase>package</phase>
                                                <goals>
                                                                <goal>create_version</goal>
                                                </goals>
                                                <configuration>
                                                                <serviceurl>${kwatee.service.url}</serviceurl>
                                                                <package>Scripts</package>
                                                                <version>${BUILD_NUMBER}</version>
                                                                <description>Scripts package from Job: ${JOB_NAME} and BuildNum : ${BUILD_NUMBER}</description>
                                                </configuration>
                                </execution>
                                <execution>
                                                <id>UpdateArchive</id>
                                                <phase>package</phase>
                                                <goals>
                                                                <goal>update_archive</goal>
                                                </goals>
                                                <configuration>
                                                                <serviceurl>${kwatee.service.url}</serviceurl>
                                                                <package>Scripts</package>
                                                                <version>${BUILD_NUMBER}</version>
                                                                <file>./../../../dist/tar/scripts-${JOB_NAME}-${BUILD_NUMBER}.tar.gz</file>
                                                </configuration>
                                </execution>
                </executions>
</plugin>
............
 
I enabled debug logging on my maven console and was able to see that create_version goal was successful. I see that update_archive call was being triggered and I see that entry on my jetty server but it does not detail much information on what is the bad parameter.
 
***********************************************************************************************************************
[DEBUG] Configuring mojo net.kwatee.deploy.maven:kwatee-maven-plugin:1.0.1:create_version from plugin realm ClassRealm[plugin>net.kwatee.deploy.maven:kwatee-maven-plugin:1.0.1, parent: sun.misc.Launcher$AppClassLoader@50d420eb]
[DEBUG] Configuring mojo 'net.kwatee.deploy.maven:kwatee-maven-plugin:1.0.1:create_version' with basic configurator -->
[DEBUG]   (s) description = Art-Jetty package from Job: Jetty and BuildNum : 21
[DEBUG]   (s) package = Art-Jetty
[DEBUG]   (s) serviceurl = http://admin:password@localhost:8080/kwatee
[DEBUG]   (s) version = 21
[DEBUG] -- end configuration --
[INFO]
[INFO] --- kwatee-maven-plugin:1.0.1:update_archive (UpdateArchive) @ jetty ---
[DEBUG] Configuring mojo net.kwatee.deploy.maven:kwatee-maven-plugin:1.0.1:update_archive from plugin realm ClassRealm[plugin>net.kwatee.deploy.maven:kwatee-maven-plugin:1.0.1, parent: sun.misc.Launcher$AppClassLoader@50d420eb]
[DEBUG] Configuring mojo 'net.kwatee.deploy.maven:kwatee-maven-plugin:1.0.1:update_archive' with basic configurator -->
[DEBUG]   (s) file = /home/hudson/branding-1/dist/tar/jetty-Java-Proj-Branding-2-Jetty-21.tar.gz
[DEBUG]   (s) package = Art-Jetty
[DEBUG]   (s) serviceurl = http://admin:password@localhost:8080/kwatee
[DEBUG]   (s) version = 21
[DEBUG] -- end configuration --
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.338s
[INFO] Finished at: Wed Sep 26 11:59:12 PDT 2012
[INFO] Final Memory: 22M/1504M
[INFO] ------------------------------------------------------------------------
[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal net.kwatee.deploy.maven:kwatee-maven-plugin:1.0.1:update_archive (UpdateArchive) on project jetty: Bad parameters
[DEBUG] Closing connection to remote
[ERROR] Failed to execute goal net.kwatee.deploy.maven:kwatee-maven-plugin:1.0.1:update_archive (UpdateArchive) on project jetty: Bad parameters -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal net.kwatee.deploy.maven:kwatee-maven-plugin:1.0.1:update_archive (UpdateArchive) on project jetty: Bad parameters
                at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
                at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
                at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
                at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
                at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
                at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
                at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
                at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
                at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
                at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
                at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
                at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:601)
                at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
                at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
                at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
                at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Bad parameters
                at net.kwatee.deploy.maven.kwatee_maven_plugin.UpdateArchiveGoal.doUpdate(UpdateArchiveGoal.java:124)
                at net.kwatee.deploy.maven.kwatee_maven_plugin.UpdateArchiveGoal.execute(UpdateArchiveGoal.java:78)
                at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
                at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
                ... 19 more
***********************************************************************************************************************
 
My Jetty server logs indicate the following data:
INFO : 2012Sep26 11:59:11,960 - Login attempt by admin
ERROR: 2012Sep26 11:59:11,969 - updateVersionArchive: Bad parameters
 
 
 
Let me know if I am missing something here…[/quote]

Mac

unread,
Oct 10, 2012, 10:47:20 AM10/10/12
to kwatee-c...@googlegroups.com
Hi Rama,

I am thoroughly stumped for now. Nothing major has changed since version 2.1.9 to 2.1.10 except a minor change I wanted you to try. Are other web apps running on the same server as kwatee? If so, did you add common libs which may be conflicting with kwatee (i.e. something that would load a JPA1 persistence API instead of the required JPA2)?

In any event, I realized that you were using version 2.1.9beta1. Please download the official 2.1.9 from the web site and let me know how things go with that.

mac

[quote]Hi Mac,
 
Not sure if this is a latest version package or not but now I get error while logging in to kwatee itself. I downloaded this 2.10alpha version whereas I earlier have kwatee-2.1.9beta1 – I am getting the following spring security error .. some method not found error.
 
HTTP ERROR 500
Problem accessing /kwatee/j_spring_security_check. Reason:
    Error creating bean with name 'kwateeSessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z
Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'kwateeSessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:252)
        at net.kwatee.deploy.server.repository.DBPersistenceServiceImpl.acquireSession(SourceFile:65)
        at net.kwatee.deploy.server.UserDetailsImpl.loadUserByUsername(SourceFile:34)
        at org.springframework.security.authentication.dao.DaoAuthenticationProvider.retrieveUser(DaoAuthenticationProvider.java:82)
        at org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:124)
        at org.springframework.security.authentication.ProviderManager.doAuthentication(ProviderManager.java:120)
        at org.springframework.security.authentication.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:48)
        at org.springframework.security.authentication.ProviderManager.doAuthentication(ProviderManager.java:138)
        at org.springframework.security.authentication.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:48)
        at org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter.attemptAuthentication(UsernamePasswordAuthenticationFilter.java:97)
        at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
        at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
        at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
        at org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:109)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
        at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149)
        at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:486)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:973)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:417)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:907)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
        at org.eclipse.jetty.server.Server.handle(Server.java:350)
        at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:442)
        at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:941)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:801)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:224)
        at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
        at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z
        at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1912)
        at org.hibernate.cfg.AnnotationBinder.processIdPropertiesIfNotAlready(AnnotationBinder.java:796)
        at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:707)
        at org.hibernate.cfg.Configuration$MetadataSourceQueue.processAnnotatedClassesQueue(Configuration.java:3977)
        at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3931)
        at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1368)
        at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1345)
        at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:717)
        at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
        ... 51 more
Caused by:
java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z
        at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1912)
        at org.hibernate.cfg.AnnotationBinder.processIdPropertiesIfNotAlready(AnnotationBinder.java:796)
        at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:707)
        at org.hibernate.cfg.Configuration$MetadataSourceQueue.processAnnotatedClassesQueue(Configuration.java:3977)
        at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3931)
        at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1368)
        at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1345)
        at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:717)
        at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:252)
        at net.kwatee.deploy.server.repository.DBPersistenceServiceImpl.acquireSession(SourceFile:65)
        at net.kwatee.deploy.server.UserDetailsImpl.loadUserByUsername(SourceFile:34)
        at org.springframework.security.authentication.dao.DaoAuthenticationProvider.retrieveUser(DaoAuthenticationProvider.java:82)
        at org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:124)
        at org.springframework.security.authentication.ProviderManager.doAuthentication(ProviderManager.java:120)
        at org.springframework.security.authentication.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:48)
        at org.springframework.security.authentication.ProviderManager.doAuthentication(ProviderManager.java:138)
        at org.springframework.security.authentication.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:48)
        at org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter.attemptAuthentication(UsernamePasswordAuthenticationFilter.java:97)
        at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
        at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
        at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
        at org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:109)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
        at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149)
        at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:486)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:973)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:417)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:907)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
        at org.eclipse.jetty.server.Server.handle(Server.java:350)
        at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:442)
        at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:941)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:801)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:224)
        at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)[/quote]

Kwatee Community

unread,
Oct 10, 2012, 10:48:04 AM10/10/12
to kwatee-c...@googlegroups.com
I did try getting latest [2.1.9] version and I still see the same error as the alpha version error that you sent.

Problem accessing /kwatee/j_spring_security_check. Reason:



   
Error creating bean with name 'kwateeSessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z


Caused by:


org
.springframework.beans.factory.BeanCreationException: Error creating bean with name 'kwateeSessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z
 at org
.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)
 at org
.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
 at org
.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
 at org
.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
 at org
.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
 at org
.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
 at org
.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
 at org
.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:252)
 at net
.kwatee.deploy.server.repository.DBPersistenceServiceImpl.acquireSession(SourceFile:65)
 at net
.kwatee.deploy.server.UserDetailsImpl.loadUserByUsername(SourceFile:34)


rama

Kwatee Community

unread,
Oct 10, 2012, 10:48:47 AM10/10/12
to kwatee-c...@googlegroups.com
Just wanted to update that 2.1.9beta1 version works fine atleast site login, access and other things to do manually.. For that 2.1.9beta1 version, only issue was with update_archive goal

rama

Mac

unread,
Oct 10, 2012, 10:50:09 AM10/10/12
to kwatee-c...@googlegroups.com
I am still clueless for now. For sake of thoroughness I have performed a full diff between the 2.1.9beta1 and the 2.1.9 releases from their distribution packages (expanding the wars) and the only class that has changed is RESTController.class as I expected. Changes were minor and anyway, nothing from this class gets instantiated at login time (you got the error during web login, right?).

Which version of jetty are you using and with which java runtime? Did you add any common libs to the default which may be conflicting with kwatee (i.e. something that would load a JPA1 persistence API instead of the required JPA2)?

Mac

unread,
Oct 16, 2012, 1:46:10 AM10/16/12
to kwa...@googlegroups.com, kwatee-c...@googlegroups.com
This issue should have been resolved in version 2.1.10.
Reply all
Reply to author
Forward
0 new messages