I am using the MobileFirst Platform on Liberty profile and DB2 for database.
I deployed the new project war file on the Mobile First Platform. after the deployment I restart the server when I try to access the Mobile First Platform console I am getting the below error.
but the project schema, Mobile First Platform schema and report schema are there and currently there has not been any change on DB2 side.
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'worklight-direct' defined in URL
[wsjar:file:/appl/was1/IBM/WebSphere/Liberty/usr/shared/resources/hamfactoryapps/lib/worklight-jee-library.jar!/conf/spring-server-core.xml]:
Invocation of init method failed; nested exception is
java.lang.RuntimeException: FWLSE0206E: The project /hamfactoryapps failed
to initialize, because the project database schema for data source
jdbc:db2://xxxxxx:51000/WRKLGHT is from version N/A,
which is not supported by the server from version 6.3.0.00.20141127-1357.
Use the MobileFirst ant tasks to upgrade the project database schema.
[project hamfactoryapps]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
(AbstractAutowireCapableBeanFactory.java:1338)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean
(AbstractAutowireCapableBeanFactory.java:473)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
$1.run(AbstractAutowireCapableBeanFactory.java:409)
I delete the old schema and I create the new one, after I'm getting the below error.
[ERROR ] CWNEN0030E: The #Resource factory encountered a problem getting the object instance jdbc/WorklightAdminDS binding object. The exception message was: failed to resolve jdbc/WorklightAdminDS to javax.sql.DataSource
[WARNING ] Expected an object of type DataSource, but found: null
[ERROR ] Context initialization failed
Error creating bean with name 'registrationServiceFactory' defined in ServletContext resource [/WEB-INF/spring-management-service.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Unable to open data base. DataStoreFactory returned null for unknown reason.
[ERROR ] SRVE0283E: Exception caught while initializing context: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registrationServiceFactory' defined in ServletContext resource [/WEB-INF/spring-management-service.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Unable to open data base. DataStoreFactory returned null for unknown reason.
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(AccessController.java:300)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
This error would happen if you are trying to access the wrong schema than the one you have intended to use. Double-check this.
Also make sure that you have used the correct create-worklight-db2.sql. See the documentation here: http://www-01.ibm.com/support/knowledgecenter/SSHS8R_6.3.0/com.ibm.worklight.installconfig.doc/devref/t_ant_tasks_configure_dbs_wlconsole.html
purge the database and re-create it based on the above.
Related
I deployed my instance using the steps on https://apacheignite.readme.io/docs/google-compute-deployment
and made some configuration changes to enable cloud storage based discovery.
I think I have to specify an optional lib to get the cloud storage discovery module on the classpath, but specifying the OPTION_LIBS variable so that it includes 'ignite-gce' does not have any effect in my case. The logs of the docker container say this:
```
class org.apache.ignite.IgniteException: Failed to instantiate Spring XML application context (make sure all classes used in Spring configuration are present at CLASSPATH) [springUrl=https://storage.googleapis.com/ignite-discovery/default-config.xml]
at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:966)
at org.apache.ignite.Ignition.start(Ignition.java:350)
at org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to instantiate Spring XML application context (make sure all classes used in Spring configuration are present at CLASSPATH) [springUrl=https://storage.googleapis.com/ignite-discovery/default-config.xml]
at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:387)
at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:104)
at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:98)
at org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:673)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:874)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:783)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:653)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:622)
at org.apache.ignite.Ignition.start(Ignition.java:347)
... 1 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.ignite.configuration.IgniteConfiguration#0' defined in URL [https://storage.googleapis.com/ignite-discovery/default-config.xml]: Cannot create inner bean 'org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi#1f021e6c' of type [org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi] while setting bean property 'discoverySpi'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi#1f021e6c' defined in URL [https://storage.googleapis.com/ignite-discovery/default-config.xml]: Cannot create inner bean 'org.apache.ignite.spi.discovery.tcp.ipfinder.gce.TcpDiscoveryGoogleStorageIpFinder#68ceda24' of type [org.apache.ignite.spi.discovery.tcp.ipfinder.gce.TcpDiscoveryGoogleStorageIpFinder] while setting bean property 'ipFinder'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.ignite.spi.discovery.tcp.ipfinder.gce.TcpDiscoveryGoogleStorageIpFinder#68ceda24' defined in URL [https://storage.googleapis.com/ignite-discovery/default-config.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ignite.spi.discovery.tcp.ipfinder.gce.TcpDiscoveryGoogleStorageIpFinder]: No default constructor found; nested exception is java.lang.NoClassDefFoundError: com/google/api/client/http/AbstractInputStreamContent
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:313)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)
at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:381)
... 9 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi#1f021e6c' defined in URL [https://storage.googleapis.com/ignite-discovery/default-config.xml]: Cannot create inner bean 'org.apache.ignite.spi.discovery.tcp.ipfinder.gce.TcpDiscoveryGoogleStorageIpFinder#68ceda24' of type [org.apache.ignite.spi.discovery.tcp.ipfinder.gce.TcpDiscoveryGoogleStorageIpFinder] while setting bean property 'ipFinder'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.ignite.spi.discovery.tcp.ipfinder.gce.TcpDiscoveryGoogleStorageIpFinder#68ceda24' defined in URL [https://storage.googleapis.com/ignite-discovery/default-config.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ignite.spi.discovery.tcp.ipfinder.gce.TcpDiscoveryGoogleStorageIpFinder]: No default constructor found; nested exception is java.lang.NoClassDefFoundError: com/google/api/client/http/AbstractInputStreamContent
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:313)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:299)
... 22 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.ignite.spi.discovery.tcp.ipfinder.gce.TcpDiscoveryGoogleStorageIpFinder#68ceda24' defined in URL [https://storage.googleapis.com/ignite-discovery/default-config.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ignite.spi.discovery.tcp.ipfinder.gce.TcpDiscoveryGoogleStorageIpFinder]: No default constructor found; nested exception is java.lang.NoClassDefFoundError: com/google/api/client/http/AbstractInputStreamContent
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1155)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1099)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:299)
... 28 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ignite.spi.discovery.tcp.ipfinder.gce.TcpDiscoveryGoogleStorageIpFinder]: No default constructor found; nested exception is java.lang.NoClassDefFoundError: com/google/api/client/http/AbstractInputStreamContent
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:85)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1147)
... 32 more
Caused by: java.lang.NoClassDefFoundError: com/google/api/client/http/AbstractInputStreamContent
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructor0(Class.java:3075)
at java.lang.Class.getDeclaredConstructor(Class.java:2178)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:80)
... 33 more
Caused by: java.lang.ClassNotFoundException: com.google.api.client.http.AbstractInputStreamContent
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 38 more
Failed to start grid: Failed to instantiate Spring XML application context (make sure all classes used in Spring configuration are present at CLASSPATH) [springUrl=https://storage.googleapis.com/ignite-discovery/default-config.xml]
Note! You may use 'USER_LIBS' environment variable to specify your classpath.
```
What should I do in order to make the docker container pick up this OPTION_LIBS variable?
It's actually OPTION_LIBS, not OPTIONAL_LIBS.
I had to shutdown graphdb due to a reboot but now after starting up again I get a long list of errors...
Error message here as it is too long for stackoverflow
I am now running the storage tool to export the few dozen graphs I have in there but is there a way to restore and startup graphdb again? It is version 8.0.2 and I am planning to upgrade it soon...
All GraphDB errors with messages like the one below indicate that the Workbench failed to deserialize the internal database containing information about the currently active location, users, permissions, saved SPARQL queries, application states like diagrams, etc.
[ERROR] 2017-06-23 07:51:55,256 [localhost-startStop-1 | o.a.c.c.C.[.[.[/]] Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener|
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fileTasksExecutor': Invocation of init method failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'repositoryActionClassHierarchyListener' defined in URL [jar:file:/ssd/graphdb-free-8.0.2/lib/workbench/WEB-INF/lib/graphdb-framework-graph-explore-8.0.2.jar!/com/ontotext/forest/graphexplore/listener/RepositoryActionClassHierarchyListener.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.ontotext.forest.graphexplore.service.ClassHierachyStorageService]: : Error creating bean with name 'classHierachyStorageService': Invocation of init method failed; nested exception is java.lang.NullPointerException; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'classHierachyStorageService': Invocation of init method failed; nested exception i|
s java.lang.NullPointerException
To reinitialize the Workbench's meta-data rename or delete the directory {$gdb.home.work}. This operation will remove all Workbench specific configurations only and keep all your repository data!
I am migrating worklight project from WL 6.1 to MobileFirst 7.1. But when deploying the application in MobileFirst Studio 7.1, I got this error
error creating bean with name 'taskManager' defined in URL [wsjar:file:/C:/workspace/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'worklightAuthenticationService' while setting bean property 'authenticationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklightAuthenticationService' defined in URL [wsjar:file:/C:/workspace/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'loginConfigurationServiceBean' while setting bean property 'loginConfigurationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginConfigurationServiceBean' defined in URL [wsjar:file:/C:/workspace/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
[ERROR ] FWLST0003E: ========= Failed starting project /Common_Shell [project Common_Shell]
Error creating bean with name 'taskManager' defined in URL [wsjar:file:/C:/workspace/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'worklightAuthenticationService' while setting bean property 'authenticationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklightAuthenticationService' defined in URL [wsjar:file:/C:/workspace/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'loginConfigurationServiceBean' while setting bean property 'loginConfigurationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginConfigurationServiceBean' defined in URL [wsjar:file:/C:/workspace/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
[ERROR ] Error creating bean with name 'taskManager' defined in URL [wsjar:file:/C:/workspace/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'worklightAuthenticationService' while setting bean property 'authenticationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklightAuthenticationService' defined in URL [wsjar:file:/C:/workspace/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'loginConfigurationServiceBean' while setting bean property 'loginConfigurationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginConfigurationServiceBean' defined in URL [wsjar:file:/C:/workspace/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
Error creating bean with name 'taskManager' defined in URL [wsjar:file:/C:/workspace/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'worklightAuthenticationService' while setting bean property 'authenticationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklightAuthenticationService' defined in URL [wsjar:file:/C:/workspace/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'loginConfigurationServiceBean' while setting bean property 'loginConfigurationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginConfigurationServiceBean' defined in URL [wsjar:file:/C:/workspace/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
[ERROR ] Common_Shell: worklight///192.168.181.1: 2016-10-15T13:57:56.842Z: Error creating bean with name 'taskManager' defined in URL [wsjar:file:/C:/workspace/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'worklightAuthenticationService' while setting bean property 'authenticationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklightAuthenticationService' defined in URL [wsjar:file:/C:/workspace/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'loginConfigurationServiceBean' while setting bean property 'loginConfigurationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginConfigurationServiceBean' defined in URL [wsjar:file:/C:/workspace/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
[ERROR ] SRVE0315E: An exception occurred: com.ibm.ws.webcontainer.webapp.WebAppErrorReport: javax.servlet.ServletException: Worklight Console initialization failed.Logged Exception: java.lang.Throwable: Error creating bean with name 'loginConfigurationServiceBean' defined in URL [wsjar:file:/C:/workspace/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
at com.worklight.core.auth.impl.AuthenticationFilter.verifyServletInitialized(AuthenticationFilter.java:589)
at com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:145)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:206)
at [internal classes]
at com.worklight.analytics.AnalyticsFilter.doFilter(AnalyticsFilter.java:124)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:206)
at [internal classes]
Caused by: javax.servlet.ServletException: Worklight Console initialization failed.Logged Exception: java.lang.Throwable: Error creating bean with name 'loginConfigurationServiceBean' defined in URL [wsjar:file:/C:/workspace/MobileFirstServerConfig/shared/resources/worklight-jee-library-7.1.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
... 8 more
I tried to figure out what might cause that error, and I found that when removing sso="true"and ssoDeviceLoginModule from authenticationConfig.xml, the deployment is done successfully
I know that inconsistent configuration of ssoand ssoDeviceLoginModule may cause some errors. but I am sure it is consistent as it is also works fine on WL6.1.
Edit:
I am using two different versions of worklight studio(6.1 & 7.1) with
two separate workspaces for both projects.
I am trying to deploy using worklight studio.(right-click --> Run AS --> Run On MobileFirst Dev Server)
Your question is lacking numerous details. My suggestion is for you to make sure you're making your project migration in a clean environment.
Install Eclipse Mars.
Create a new workspace for it.
Install MobileFirst Studio 7.1 on it.
In your Eclipse with Worklight Studio 6.1, export your project
Import the project to the Eclipse with MobileFirst Studio v7.1
The import should pass.
If it doesn't, you need to open a PMR and provide your project to the support team. Stack Overflow is not the medium for this question.
I'm working through the Appfuse tutorial for version 3.5 (as previously advised by Matt Raible in response to another question).
I'm on this step: http://appfuse.org/display/APF/Using+Spring+MVC#UsingSpringMVC-listview
But when I build (mvn package).. I get the following error:
Running gov.nysed.archives.Nimbus.dao.PersonDaoTest
Running gov.nysed.archives.Nimbus.webapp.controller.UpdatePasswordControllerTest
WARN [main] GenericApplicationContext.refresh(487) | Exception encountered during context initialization - cancelling refresh attempt org.springframework.beans.factory.BeanCreationException: Error creating bean wit h name 'userManager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void gov.nysed.archives.Nimbus.service.impl.UserManagerImpl.set
MailMessage(org.springframework.mail.SimpleMailMessage); nested exception is java.lang.NoClassDefFoundError: [Lorg/hibernate/engine/FilterDefinition;
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~[spring-beans-4.1.3.RELEASE.jar:4.1.3.RELEASE] ...
Could my adding the "persons" section (Entity and controller etc) cause this problem? It passed the tests prior to adding the new entity... so of course, yes... but how?
The following error occurs when I start worklight:
objc[732]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
Launching worklight (WebSphere Application Server 8.5.5.0/wlp-1.0.3.20130524-0951) on Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_40-b43 (en_US)
[AUDIT ] CWWKE0001I: The server worklight has been launched.
[AUDIT ] CWWKZ0058I: Monitoring dropins for applications.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://acab0a7a.ipt.aol.com:10080/_MobileBrowserSimulator/
[AUDIT ] CWWKZ0001I: Application _MobileBrowserSimulator started in 0.274 seconds.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://acab0a7a.ipt.aol.com:10080/mobile/
[err] 22 WorklightPU WARN [Scheduled Executor-thread-1] openjpa.Runtime - An error occurred while registering a ClassTransformer with PersistenceUnitInfo: name 'WorklightPU', root URL [file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar]. The error has been consumed. To see it, set your openjpa.Runtime log level to TRACE. Load-time class transformation will not be available.
[ERROR ] FWLST0003E: ========= Failed starting project /mobile [project mobile]
Error creating bean with name 'taskManager' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'worklightAuthenticationService' while setting bean property 'authenticationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklightAuthenticationService' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Cannot create inner bean 'com.worklight.core.auth.impl.LoginConfigurationServiceBean#eb508f3' of type [com.worklight.core.auth.impl.LoginConfigurationServiceBean] while setting bean property 'loginConfigurationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.worklight.core.auth.impl.LoginConfigurationServiceBean#eb508f3' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Class 'com.customauthpackage.CustomLoginModule' defined in login module 'CustomLoginModule' in the authentication configuration file doesn't exist.
[ERROR ] SRVE0283E: Exception caught while initializing context: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'taskManager' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'worklightAuthenticationService' while setting bean property 'authenticationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklightAuthenticationService' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Cannot create inner bean 'com.worklight.core.auth.impl.LoginConfigurationServiceBean#eb508f3' of type [com.worklight.core.auth.impl.LoginConfigurationServiceBean] while setting bean property 'loginConfigurationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.worklight.core.auth.impl.LoginConfigurationServiceBean#eb508f3' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Class 'com.customauthpackage.CustomLoginModule' defined in login module 'CustomLoginModule' in the authentication configuration file doesn't exist.
Caused by (repeated) ... : org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'taskManager' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Cannot resolve reference to bean 'worklightAuthenticationService' while setting bean property 'authenticationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'worklightAuthenticationService' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Cannot create inner bean 'com.worklight.core.auth.impl.LoginConfigurationServiceBean#eb508f3' of type [com.worklight.core.auth.impl.LoginConfigurationServiceBean] while setting bean property 'loginConfigurationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.worklight.core.auth.impl.LoginConfigurationServiceBean#eb508f3' defined in URL [wsjar:file:/Users/thomas/Documents/workspace/Concert/WorklightServerConfig/shared/resources/worklight-jee-library-6.0.0.jar!/conf/core.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Class 'com.customauthpackage.CustomLoginModule' defined in login module 'CustomLoginModule' in the authentication configuration file doesn't exist.
...
Caused by: java.lang.RuntimeException: Class 'com.customauthpackage.CustomLoginModule' defined in login module 'CustomLoginModule' in the authentication configuration file doesn't exist.
...
[AUDIT ] CWWKZ0001I: Application mobile started in 4.168 seconds.
[AUDIT ] CWWKF0011I: The server worklight is ready to run a smarter planet.
I'm running OS X (10.8.4), Eclipse Juno SR2 20130225-0426, worklight plugin version 6.0.0.20130724-1819, Eclipse is pointing to jdk1.7.0_40 ("MacOS X VM") running in 1.7 compiler compliance level. CustomLoginModule is on the server and in the Eclipse viewer its covered in odd errors such as "String cannot be resolved to a type". I had this same error in windows and I believe I fixed it when I switched the eclipse jdk, but that didn't help this time. I really think this is a jdk issue, but everything seems correct. Any ideas? Thanks
EDIT: I resolved the issue by right clicking my project > properties > Java Build Path > Libraries > editing that "JRE System Library [jre7] (unbound)" and selecting "Workspace default JRE (Home)" thanks for your help! I got another problem now, but this one looks familiar as well. –
Have you checked for updates to your installed Worklight plug-in? a fix for 6.0.0.0 was released a while ago. Please check.
Otherwise, and I am not entirely sure, you should perhaps do the following:
Right-click on the Worklight project >> Properties
Java Build Path >> Libraries >> Add Library >> Server Runtime
Choose "Worklight Development Server" >> OK
Clean >> Restart server