Maximo anywhere error when deploying adapter on worklight server - ibm-mobilefirst

I need to use maximo anywhere so i have installed worklight server and worklight studio. from worklight studio when trying to deploy adapter on worklight i got this error in console :
Adapter deployment failed
Not Found; Error 404: com.ibm.ws.webcontainer.servlet.exception.NoTargetForURIException: No target servlet configured for uri : /console/api/adapters/upload
What can be the cause of this problem? Can you help me please?

The current suggestion is to upgrade the Studio installation to either the latest 5.0.6.2 iFix level, or to Worklight 6.0, as Worklight 5.0.6 is no longer a supported product level.

Related

No MBean found for worklight project

I am trying Worklight 6.2 on this version of eclipse:
Version: Luna Release (4.4.0)
Build id: 20140612-0600
The eclipse is clean, clean workspace and just installed Worklight 6.2 - 6.2.0.00-20140719-1643.
When I build my project for deployment to the development server I get error:
Failed to deploy application 'MyApp' to Worklight Server: No MBean found for Worklight project 'SiriusProject'. Possibly the Worklight
runtime web application for Worklight project 'SiriusProject' is not running. If it is running, use JConsole to inspect the available
MBeans.
If i try to deploy my adapter I get this error:
Adapter deployment failed: No MBean found for Worklight project 'MyProject'. Possibly the Worklight runtime web application for Worklight
project 'MyProject' is not running. If it is running, use JConsole to inspect the available MBeans.
Early in the console output I see
A preview contributor threw an exception while updating the URL
NullPointerException. check logs.
But I dont know which logs it is asking me to check.
See if any of these suggestions help: How to Fix No MBean found for Worklight project?
Ex:
Run As--> 4 - Build Settings and Deploy Target , then Run As --> Run on Worklight Development Server
Create a new Worklight project and copy files
The answer was to use eclipse Kepler instead of Luna.
Delete WorklightServerConfig folder in workspace and rebuild your application.
Another option is to Switch your workspace.

Worklight Server error syncAdaptersFromDB

We've just upgraded our Worklight server to 6.0.0.20140208-1639, and we're now frequently getting in the Websphere standard out log the error:
DeployService W com.worklight.integration.services.impl.DeployServiceImpl syncAdaptersFromDB FWLSE0082W: Failed to deploy adapter. This may be due to a JavaScript error in your adapter implementation (archive: 'C:\Windows\TEMP\HelloWorld6506022860570731839.adapter'). [project worklightEMS]
com.worklight.gadgets.bean.InvalidDeployableException: The 'adapter' version 'null' is different than the version of Worklight Server '6.0.0'.
Use Worklight Studio '6.0.0' to build and deploy the application.
at com.worklight.integration.services.impl.DeployServiceImpl.syncAdaptersFromDB(DeployServiceImpl.java:167)
at com.worklight.integration.services.impl.DeployServiceImpl.access$000(DeployServiceImpl.java:73)
at com.worklight.integration.services.impl.DeployServiceImpl$ClusterSyncAdaptersTransaction.run(DeployServiceImpl.java:513)
at com.worklight.integration.services.impl.DeployServiceImpl$ClusterSyncAdaptersTransaction.run(DeployServiceImpl.java:502)
at com.worklight.core.util.RssBrokerUtils.doInTransaction(RssBrokerUtils.java:132)
at com.worklight.integration.services.impl.DeployServiceImpl.syncAdaptersFromDBTransaction(DeployServiceImpl.java:499)
at com.worklight.gadgets.bean.ClusterDataSynchronizationTask.step(ClusterDataSynchronizationTask.java:42)
at com.worklight.core.tasks.TaskThread.run(TaskThread.java:111)
There is no "HelloWorld" adapter in c:\Windows\TEMP and we can't find any reference to this in the WL project that was deployed to the server. We rebuilt the WAR and deployed to the server using the same patch release.
Any idea why this error is being triggered and what we can do to stop it?
The following are pretty much the issue as yours:
Issues of migrating Worklight from v6.0 to v6.1
IBM Worklight 6.0 - Adapter disappears after it is deployed
IBM Worklight - Project built on 6.1 will not deploy on 6.1 server, says I need to use 6.0
IBM Worklight 6.0.0.1 - Error deploying adapters to server
Worklight Server - Failed to deploy adapter 'LinkAccount.adapter'.
I recommend to review all answers to the above questions.
You can then try to (or/and anything else that will be suggested above):
Rebuild all artifacts (.wlapp, .adapter) with the new Worklight Studio build
Make sure the updated Worklight Server version is installed in the application server
Deploy the freshly generated .war file by Worklight Studio
Deploy all artifacts

Worklight Server - Failed to deploy adapter 'LinkAccount.adapter'.

From the previous problematic and devastation in installation worklight server into our websphere, IBM Worklight 6.1 - Project fails to initialize because the project database schema is from version N/A , we discover new problem after that catastrophic event. First we got this error message
Error 500: javax.servlet.
ServletException: Worklight Console initialization failed.Logged Exception: java.lang.RuntimeException: FWLSE4010E: The project 'xxxx' failed to initialize, because the project WAR file is not supported by the server from version 6.1.0.00.20131126-0630. Use the migration tool to upgrade the project WAR file. [project xxxx]
Then we use the migration tool to ugrade follow from this guideline --> http://pic.dhe.ibm.com/infocenter/wrklight/v6r1m0/topic/com.ibm.worklight.deploy.doc/devenv/r_migrating_old_wl_project_to_new_wl_server.html
We managed to deployed the war file.
Next we want to deploy the adaptor, we encounter this error message
Failed to deploy adapter 'LinkAccount.adapter'. The 'adapter' version '6.1.0.00.20131219-1900' is different than the version of the Worklight project '6.0.0'. Use Worklight Studio '6.0.0' to build and deploy the application.
When we check the version at the console (Worklight Server), the project war version is 6.0.0. Both Studio and Server is in the same version 6.1 but need to do the migration process which downgrade the project into 6.0.0.
Do missing something during the installation of Worklight server?
Our Worklight Studio (eclipse)
Worklight Server version
Remove the worklight console application from WAS (Websphere application server)
Stop WAS.
Redeploy war file that containing worklight console
Start WAS
You need to rebuild the .wlapp and .adapter files in your studio version that have a same version with worklight server.
Install Worklight Studio 6.1
Deploy Worklight Server 6.1
Build your project in Worklight Studio 6.1 (adapters, app)
Deploy generated .war file in the server
Deploiy generated .adapter and .wlap in the server
Build everything with the new version and deploy the new artifacts in the same version.
If you are running on your application server several instances of Worklight Server, make sure you deploy to the correct one.
Delete the contents in your project bin folder.
Build and deploy all the adapters.
Build and deploy the application.
open worklight console

IBM Worklight 6.0 - "project not initialized" error

The following is my setup:
WebSphere Application Server v8.0 express Edition
IBM DB2 10.1 Server Edition
IBM Worklight Server Consumer Edition v6.0
Worklight Studio v6.0 Consumer edition Eclipse plug-in
JDK 1.7
To perform installation task i followed the IBM Worklight v6.0.0 infocenter "Installing & Configuring" section.
After Deploying app on the Application Server when i am accessing app using
localhost:9080/Hello/console it shows the error of "Worklight Project not initialized".
Thanks,
It would help if you edit your question and detail how did you install (deploy) Worklight on your copy of WAS. This will help in finding out any possible errors in your steps.
Please make sure that you follow the instructions as given in the IBM Worklight Information Center: Installing Worklight Server
In addition I've found this technote regarding WAS Liberty, which talks about the same error message: http://www-01.ibm.com/support/docview.wss?uid=swg1PM88638

IBM Worklight 5.0.6 defined in loginmodule 'rejectAll' in the authentication configuration file doesn't exist

I created the new Worklight project and application in Worklight v5.0.6 and it's running fine in the Developer Edition.
After building the project and trying to deploy it to my application server I get this error message:
nested exception is java.lang.RuntimeException: Class 'com.worklight.core.auth.ext.RejectingLoginModule' defined in login module 'rejectAll' in the authentication configuration file doesn't exist."
See the answer here: Failed deploying application using Worklight Console: "Failed to deploy application <appName>.wlapp'. : ERROR
Make sure that you are using the same Worklight version in both WAS
(the Worklight Server you have installed on it) and Worklight Studio
(the Eclipse plug-in you use in order to, eventually, generate the .wlapp).
To find out the Worklight version you have installed in WAS,
load Worklight Console and click on the "About" link at the top-right corner. The version number is displayed there.
To find out the Worklight version you have installed in
Eclipse, go to the Help menu >> About >> click the Worklight icon.
The version number is displayed there.
Mismatched Worklight versions are not recommended to have, and can/will cause such errors.