cancel
Showing results for 
Search instead for 
Did you mean: 

POM is invalid

swa1
Champ in-the-making
Champ in-the-making
Hi, when deploying I get the following Warning:

[artifact:dependencies] Its dependencies (if any) will NOT be available to the current build.
[artifact:dependencies] [WARNING] POM for 'org.activiti:activiti-engineSmiley Tongueom:5.2:compile' is invalid.

The BUILD FAILED with org.activiti.engine.ActivitiException: Could not find a process engine with name default, engines loaded:
Process engine name: unknown - resource: file:/C:/Program%20Files/Activiti/activiti-5.2/workspace/activiti-cycle-examples/Test_5.2/target/classes/activiti.cfg.xml - status: Error while initializing engine. Stacktrace: java.lang.NoClassDefFoundError: org/springframework/beans/factory/support/BeanDefinitionRegistry

What's wrong here?
4 REPLIES 4

frederikherema1
Star Contributor
Star Contributor
swa,

The last error indicates the ProcessEngines tries to load an engine with name "default", but wasn't found on the classpath (no engines are loaded it seems). Probabily the activiti.cfg.jar (or activiti.cfg.xml) isn't on the classpath.

When do you get this error (demo, deploy bar using ant, …)?

swa1
Champ in-the-making
Champ in-the-making
Hi Frederik,

yes I get the error with deploy-bar using ANT.
For more information, I comleted my former post. I hope that will help.

frederikherema1
Star Contributor
Star Contributor
Looks like spring-beans is not on the classpath for the ANT-target, this is used to read process-engine configuration. Can you check what classpath you use for the deploy-bar?

swa1
Champ in-the-making
Champ in-the-making
Thanks Frederic, thats it. spring-beans are now on my classpath.
But there comes the next problem.

BUILD FAILED
C:\Program Files\activiti-5.2\workspace\activiti-cycle-examples\FileBug\build.xml:100: org.activiti.engine.ActivitiException: Could not find a process engine with name default, engines loaded:
Process engine name: unknown - resource: file:/C:/Program%20Files/activiti-5.2/workspace/activiti-cycle-examples/FileBug/target/classes/activiti.cfg.xml - status: Error while initializing engine. Stacktrace: org.apache.ibatis.exceptions.PersistenceException:
### Error querying database.  Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for selectDbSchemaVersion
### The error may exist in org/activiti/db/ibatis/variable.mapping.xml
### Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for selectDbSchemaVersion