deployment - Failed to deploy worklight adapter in Worklight -


when deploying bpm project in development environment, works. however, when trying move project application server, adapter deployment fails (.war , .wlapp deployment passes successfully):

failed deploy adapter 'bpmadapter.adapter'. : procedure 'getrest' in adapter 'bpmadapter' requires security test 'bpmadapter-securitytest' not defined in authenticationconfig.xml. 

we've verified security test exists in authenticationconfig.xml, here's portion of tests, is, in fact present:

<securitytests>     <customsecuritytest name="bpmadapter-securitytest">         <test isinternaluserid="true" realm="bpmauthrealm"/>     </customsecuritytest>     <websecuritytest name="bpmapp-web-securitytest">         <testuser realm="bpmauthrealm"/>     </websecuritytest>     <mobilesecuritytest name="bpmapp-strong-mobile-securitytest">         <testuser realm="bpmauthrealm"/>         <testdeviceid provisioningtype="none"/>     </mobilesecuritytest>     <mobilesecuritytest name="bpmapp-mobile-securitytest">         <testuser realm="bpmauthrealm"/>     </mobilesecuritytest> </securitytests> 

these steps we've taken:

testing server: windows 2008 r2 datacenter
database: db2 10.1
application server: 8.0.0.3 nd

  1. installed worklight server enterprise 5.0.5 db2 databases successfully. (worklight working at: http://internal:9082

  2. installed in server (for sake of not having problems jdbc during build) worklight studio enterprise 5.0.5 successfully.

  3. imported project new workspace inside studio.

  4. deployed worklight adapter bpmadapter.xml successfully.

  5. right click on app (bpmapp) , "build , deploy" successfully.

  6. opened http://internalip:8080/console (development jetty based worklight console) see if application deployed, , indeed it's shown in list (both apps , adapter).

  7. tested "preview common resources" verify application works, success.

    now proceed make adjustments files needed deployment:

  8. changed in application-descriptor.xml file http://${local.ipaddress}:8080 http://internalip:9082/worklight (this example shows same approach http://goo.gl/xbynl)

  9. at point open bin dir , copy folder in desktop *.wlapp files , bpmadapter.adapter file.

  10. now make changes in worklight.properties file:

    publicworklighthostname=the operational hostname worklight server publicworklightprotocol=http publicworklightport=9082 publicworklightcontext=/worklight wl.db.jndi.name=jdbc/worklightds wl.db.type=db2 wl.db.url=jdbc:db2:worklight wl.db.username=wluser wl.db.password=correctpassword wl.reports.db.jndi.name=jdbc/worklightreportsds wl.reports.db.type=${wl.db.type} wl.reports.db.url=${wl.db.url} wl.reports.db.username=${wl.db.username} wl.reports.db.password=${wl.db.password}

  11. saved worklight.properties , *.war regenerated, copy *.war deployment folder later upload was.

  12. create in enterprise application according to: (infocenter wl 5.0.5 - deploying customization .war file websphere application server full profile) making sure in "class loader order" pane, click classes loaded local class loader first (parent last) , in modules section "class loader order" pane, click classes loaded local class loader first (parent last). war upload , start-up successful.

  13. with .war uploaded (context root bpmworklight) go in browser http://internalip:9082/bpmworklight/console/#catalog , upload bpmapp-all.wlapp (we don't upload other 3 iphone, android or common, -all.wlapp) upload successful.

  14. we proceed upload in http://internalip:9082/bpmworklight/console/#catalog adapter bpmadapter.adapter, error "failed deploy adapter 'bpmadapter.adapter'. : procedure 'getrest' in adapter 'bpmadapter' requires security test 'bpmadapter-securitytest' not defined in authenticationconfig.xml."

see answer here: failed deploying application using worklight console: "failed deploy application <appname>.wlapp'. : error

make sure worklight server version installed on websphere matches of worklight studio eclipse plug-in used create .war, .wlapps , .adapter files.

in addition, make sure that:

  1. you use same context root ("bpmworklight") all:

    • in application-descriptor.xml
    • in worklight.properties
    • name of .war file
  2. you have removed previous .war installed default worklight installation on was

i getting feeling have several worklight .war files deployed , somehow using wrong .war, not finding/using correct authenticationconfig.xml, explain not finding securitytest.

in worklight 5.0.x, there should 1 worklight .war file @ time.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -