build all and deploy error in 5.0.6 - ibm-mobilefirst

build all and deploy error in 5.0.6
--
create one empty worklight project, build all and depoy......then the error in the console as blow.......
Thanks in advance...
[2013-03-21 21:54:00] Worklight Server started successfully on localhost:8080
[2013-03-21 21:54:00] Activating Worklight project: SDMobileBank...
[2013-03-21 21:54:06] Activation failed. Bundle didn't start:D:\Worklight_workspace\SDMobileBank\bin\SDMobileBank-customization.jar
[2013-03-21 21:54:32] Activating Worklight project: SDMobileBank...
[2013-03-21 21:54:32] Worklight Server stopped successfully on localhost:8080
[2013-03-21 21:54:34] Worklight Server started successfully on localhost:8080
[2013-03-21 21:54:41] FWLSE2001I: Detected more than one IP address. Using 192.168.25.45 as the public IP address of the Worklight Server. You can set a different IP address in worklight.properties.
[2013-03-21 21:54:44] FWLSE3005I: Application raw reports are disabled.
[2013-03-21 21:54:44] FWLST0010I: ====== Started server for project SDMobileBank-project-customization; Worklight version=5.0.6.20130307-1147
[2013-03-21 21:54:44] Activation done.
[2013-03-21 21:54:48] Persistency data access problem
com.worklight.core.exceptions.DefaultExceptionHandler.handleException(DefaultExceptionHandler.java:50)
com.worklight.core.tasks.TaskThread.run(TaskThread.java:100)
[2013-03-21 21:54:51] Starting build process: application 'SDMobileBank', all environments
[2013-03-21 21:54:51] FWLSE2001I: Detected more than one IP address. Using 192.168.25.45 as the public IP address of the Worklight Server. You can set a different IP address in the application descriptor files of your applications.
[2013-03-21 21:54:53] Application 'SDMobileBank' with all environments build finished.
[2013-03-21 21:54:53] Deploying application 'SDMobileBank' with all environments to Worklight Server...
[2013-03-21 21:54:53] Persistency data access problem
com.worklight.core.exceptions.DefaultExceptionHandler.handleException(DefaultExceptionHandler.java:50)
com.worklight.core.tasks.TaskThread.run(TaskThread.java:100)
[2013-03-21 21:54:56] Application 'SDMobileBank' deployed successfully with all environments
[2013-03-21 21:54:59] Persistency data access problem
com.worklight.core.exceptions.DefaultExceptionHandler.handleException(DefaultExceptionHandler.java:50)
com.worklight.core.tasks.TaskThread.run(TaskThread.java:100)
[2013-03-21 21:55:04] Persistency data access problem
com.worklight.core.exceptions.DefaultExceptionHandler.handleException(DefaultExceptionHandler.java:50)
com.worklight.core.tasks.TaskThread.run(TaskThread.java:100)
[2013-03-21 21:55:09] Persistency data access problem
com.worklight.core.exceptions.DefaultExceptionHandler.handleException(DefaultExceptionHandler.java:50)
com.worklight.core.tasks.TaskThread.run(TaskThread.java:100)
[2013-03-21 21:55:14] Persistency data access problem
com.worklight.core.exceptions.DefaultExceptionHandler.handleException(DefaultExceptionHandler.java:50)
com.worklight.core.tasks.TaskThread.run(TaskThread.java:100)
some times ,the error..
[2013-03-21 21:43:12] user lacks privilege or object not found:
T0.MULTILANGUAGE_MESSAGES {SELECT t0.ID, t0.ACTION, t0.CREATED_TIME, t0.DOWNLOAD_LINK, t0.ENV, t0.GADGET_NAME, t0.MESSAGE, t0.MULTILANGUAGE_MESSAGES, t0.VERSION FROM APP_VERSION_ACCESS_DATA t0
WHERE (t0.GADGET_NAME = ? AND t0.ENV = ? AND t0.VERSION = ?)}
[code=-5501, state=42501]; nested exception is
<openjpa-1.2.2-r422266:898935 nonfatal general error>
org.apache.openjpa.persistence.PersistenceException:
user lacks privilege or object not found: T0.MULTILANGUAGE_MESSAGES {
SELECT t0.ID, t0.ACTION, t0.CREATED_TIME, t0.DOWNLOAD_LINK, t0.ENV, t0.GADGET_NAME, t0.MESSAGE,
t0.MULTILANGUAGE_MESSAGES, t0.VERSION FROM APP_VERSION_ACCESS_DATA t0 WHERE (t0.GADGET_NAME = ? AND t0.ENV = ? AND t0.VERSION = ?)} [code=-5501, state=42501]

The database schema has changed in v5.0.6. This should have been made clearer, and will be addressed.
Database upgrades are not supported in the Developer Edition.
To resolve this issue:
Close Eclipse
Delete the WorklightServerHome folder located in the Eclipse workspace folder.
Restart Eclipse
Build your application.
The operation should now pass without errors.

Related

MFP8 - WASND installation Issue

I am trying to install MFP Product version: 8.0.0.00-20170125-0919 in my QA environment on WASND 8.5.5. Server topology is, DMGR, DB, WAS are in a Private VLAN and WEB(IHS) server in public VLAN. Seems like I missed some JNDI property.
In MFP Console, I am getting the below error:
FWLSE3002E: The resource is not found.
FWLSE3030E: The runtime "mfp" does not exist in the MobileFirst administration database. The database may be corrupted.
In MFP Console - Administration DB, Live Update, and Push Service are showing inactive.
See the JNDI properties such as mfp.admin.proxy*. under "Table 4. JNDI properties for administration service: proxies" in this link : https://www.ibm.com/support/knowledgecenter/en/SSHS8R_8.0.0/com.ibm.worklight.installconfig.doc/install_config/r_wladmin_jndi_property_list.html#r_wladmin_jndi_property_list
Also verify that jmx JNDI properties are correctly set. You can find the JXM properties that needs to be set from the link : https://www.ibm.com/support/knowledgecenter/SSHS8R_8.0.0/com.ibm.worklight.installconfig.doc/install_config/c_wasnd_topol.html

Mobilefirst 7.1 adapter call fails from a Mobile Web Application

Im working in a mobilefirst 7.1 web mobile app and a liberty server, my app works fine in my development server, but when ive deployed the same application pointing to my remoter server (with ip not a domain), but the app gives me a 403 error. my adapters has a
securityTest="wl_unprotected"
if ive run my adapter as a rest service from his url directly it runs ok.
Client log
Request [/worklight/apps/services/api/TestConexion/mobilewebapp/query]
worklight.js:5349 Application details header: {"applicationDetails":{"platformVersion":"7.1.0.0","nativeVersion":""}}WL.Logger.__log # worklight.js:5349
http://xxx.xxx.xx.xx:xxxx/worklight/apps/services/api/TestConexion/mobilewebapp/query Failed to load resource: the server responded with a status of 403 (Forbidden)
server log:
[11/4/15 11:41:16:877 ART] 0000006e com.ibm.ws.webcontainer.extension W SRVE0190E: File not found: /201509231601/login/nls/redirection.js
More Logs
Cannot find application environment, application=TestConexion, version=null, environment=mobilewebapp
Error code: 1, error description: INTERNAL_ERROR, error message: FWLSE0062E: An internal error occurred during browser request. [project worklight]Cannot find application environment, application=TestConexion, version=null, environment=mobilewebapp, User Identity {wl_directUpdateRealm=null, SubscribeServlet=null, wl_authenticityRealm=null, AuthRealm=null, wl_remoteDisableRealm=null, SampleAppRealm=null, wl_antiXSRFRealm=null, wl_deviceAutoProvisioningRealm=null, wl_deviceNoProvisioningRealm=null, FarmalinkRealm=null, WASLTPARealm=null, wl_anonymousUserRealm=null}. [project worklight]
and an error of independent mode:
FWLSE0373W: Deployment of application 'TestConexion': The server is running in session independent mode, which the environment 'mobilewebapp' does not support.
Any thoughts?
To me, this:
Deployment of application 'TestConexion': The server is running in session independent mode, which the environment 'mobilewebapp' does not support.
Tells me that you are working on Token based sessions not HTTP sessions. IF you go to your worklight.properties you can make the changes there to run with HTTP sessions.
worklight.properties is located under server>conf. The properties are:
mfp.session.independent=false
mfp.attrStore.type=HttpSession

IBM MobileFirst Server Error When Deploying The Helloworld Application

MobileFirst Console LOG:
[2014-12-17 11:16:49] Environment 'iPhone' was created.
[2014-12-17 11:17:00] Starting build process: application 'HelloWorldApp', environment 'iphone'
[2014-12-17 11:17:13] FWLPL0010W: The current server configuration is set to "localhost". Therefore the MobileFirst build uses the primary IP address of this
computer (192.168.137.1) instead. It is recommended to set the server configuration to use the fully qualified hostname or IP address
of this computer. To configure the setting, in the "Servers" view double-click the MobileFirst Development Server entry and edit the
"Host name" field.
[2014-12-17 11:17:25] Application 'HelloWorldApp' with environment 'iphone' build finished.
[2014-12-17 11:19:38] Starting build process: application 'HelloWorldApp', all environments
[2014-12-17 11:20:03] Application 'HelloWorldApp' with all environments build finished.
[2014-12-17 11:20:03] Deploying application 'HelloWorldApp' with all environments to MobileFirst Server...
[2014-12-17 11:20:07] Failed to deploy application 'HelloWorldApp' to MobileFirst Server: : HTTP 500 - Internal Server Errorr
MobileFirst Development Server Errorlog:
[ERROR ] F:\Worklight%206.3\Workspace\rough\MobileFirstServerConfig\servers\worklight\workarea\org.eclipse.osgi\bundles\73\data\cache\com.ibm.ws.app.manager_108\.cache\WEB-INF\lib\ibm_web20_wink_no_abdera_no_jackson-1.1.0.0-20110422.jar (The system cannot find the path specified)
F:\Worklight%206.3\Workspace\rough\MobileFirstServerConfig\servers\worklight\workarea\org.eclipse.osgi\bundles\73\data\cache\com.ibm.ws.app.manager_108\.cache\WEB-INF\lib\ibm_web20_wink_no_abdera_no_jackson-1.1.0.0-20110422.jar (The system cannot find the path specified)
[ERROR ] F:\Worklight%206.3\Workspace\rough\MobileFirstServerConfig\servers\worklight\workarea\org.eclipse.osgi\bundles\73\data\cache\com.ibm.ws.app.manager_108\.cache\WEB-INF\lib\ibm_web20_wink_no_abdera_no_jackson-1.1.0.0-20110422.jar (The system cannot find the path specified)
F:\Worklight%206.3\Workspace\rough\MobileFirstServerConfig\servers\worklight\workarea\org.eclipse.osgi\bundles\73\data\cache\com.ibm.ws.app.manager_108\.cache\WEB-INF\lib\ibm_web20_wink_no_abdera_no_jackson-1.1.0.0-20110422.jar (The system cannot find the path specified)
[ERROR ] Uncaught.init.exception.thrown.by.servlet
ManagementServlet
WorklightServices
java.lang.NoClassDefFoundError: Could not initialize class org.apache.wink.common.internal.i18n.Messages
at org.apache.wink.server.internal.DeploymentConfiguration.initAlternateShortcutMap(DeploymentConfiguration.java:386)
at org.apache.wink.server.internal.DeploymentConfiguration.init(DeploymentConfiguration.java:167)
at org.apache.wink.server.internal.servlet.RestServlet.getDeploymentConfiguration(RestServlet.java:202)
at org.apache.wink.server.internal.servlet.RestServlet.createRequestProcessor(RestServlet.java:138)
at org.apache.wink.server.internal.servlet.RestServlet.init(RestServlet.java:103)
at javax.servlet.GenericServlet.init(GenericServlet.java:161)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:325)
at [internal classes]
at com.ibm.worklight.admin.common.filter.HSTSFilter.doFilter(HSTSFilter.java:110)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:194)
at [internal classes]
Actually problem is with MobileFirst project class path just replace Java jre 1.8 to jre 1.7 and server started working properly. I think JDK 1.8 caused the problem of "HTTP 500 - Internal Server Error". Please do vote up if you find this thing useful.
Delete MobileFirstServerConfig file which is located in your workspace.And restrat your eclipse.
Then the error won't come.
It works for me
Try to hard code the ip address of the WL server instead of "localhost"
Click on server tab at the bottom of eclipse > Double click on "worklight Development server" > Host Name: "you Lan Ip address" instead of "localhost" and save the changes "Ctrl+s".
-Redeploy again.
The name of the Workspace folder should not contain spaces.
For Eg: Create a folder like "WorkSpace" .
"Work Space" will give you this error.

WorkLighr 6.0 Deployement on windows 8 issue

I am still working to ibm-worklight 6.0 mobile application , it's working fine my local eclipse development server. but i am going to install the the liberty based using WAS server while i deploye the worklight WAR file is not working. am i got the error below that,
Exception thrown by application class
'com.worklight.core.auth.impl.AuthenticationFilter.doFilter:110'
javax.servlet.ServletException: Worklight Project not initialized at
com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:110)
at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:194)
at [internal classes]
What is exactly problem on my application or server installation
This normally comes if the AuthenticationConfig file is having errors, re-check your authentication config and worklight.properties file. Make sure that while deploying for remote server, you have changed the Servername / URL etc

Failed to deploy missing security Test

I have successfully gotten the module 41 sample running with eclipse and the local server. Attempting to deploy on my liberty server returns the error.
Failed to deploy application 'PushApplication-all.wlapp'. : application descriptor uses a security test:PushApplication-strong-mobile-securityTest. However, authentication config xml does not contain a security test element with that name.
I am on Worklight 5.0.5 with a successful app running on the server and now trying to add push notifications. I have checked the war file and it does contain the authentication-config.xml with the specified test.
I saw a smilier post a few momths ago but am unable to find whether it got answered
thanks in advance.
From the sound of it, you are trying to deploy your .wlapp to a server that is already running an instance of Worklight, but this instance does not have the required securityTest settings in authenticationConfig.xml
This leads me to believe that you did not replace the .war file you already had deployed in the Liberty-profile application server with the .war file from your Push Notifications project, which contains the up-to-date authenticationConfig.xml