Hi Daniel
I've been trying this one again... and still have issues.
I am able to setup a WAR with an embedded process engine - using Spring and my own ProcessPlugins on startup in the console I successfully see on the console
...
INFO: ProcessEngine default created
...
And can access 'ProcessEngine defaultProcessEngine = BpmPlatform.getDefaultProcessEngine();' which in turn enters my own identity plugin successfully.
I'm unable to ensure this connects to the embedded engine of my own war.
Things I tried included
1) edit \apache-tomcat-7.0.57\webapps\camunda-webapp-tomcat-standalone-7.2.0\WEB-INF\applicationContext.xml to only have a dataSource which matches exactly to that of my own war, or to have no beans at all.
ERROR in this case when I try login to the Admin app:
INFO: Server startup in 18899 ms
2015-02-18 11:17:17 INFO ResteasyDeployment:82 - Deploying javax.ws.rs.core.Application: class org.camunda.bpm.admin.impl.web.AdminApplication
Feb 18, 2015 11:17:18 AM org.camunda.bpm.engine.rest.exception.RestExceptionHandler toResponse
WARNING: org.camunda.bpm.engine.rest.exception.InvalidRequestException: Process engine with name default does not exist
at org.camunda.bpm.webapp.impl.security.auth.UserAuthenticationResource.doLogin(UserAuthenticationResource.java:86)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2) edit \apache-tomcat-7.0.57\webapps\camunda-webapp-tomcat-standalone-7.2.0\WEB-INF\applicationContext.xml to match my own war applicationContext.xml.
ERROR in this case on server startup is:
Caused by: javax.management.InstanceAlreadyExistsException: org.camunda.bpm.platform.process-engine:type=default
at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)
at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)
at org.camunda.bpm.container.impl.jmx.MBeanServiceContainer.startService(MBeanServiceContainer.java:70)
... 38 more