4 Replies Latest reply on Sep 19, 2006 3:56 AM by Ronald van Kuijk

    How to deploy JBPM Example in the JBoss AS default Server

    gaofei ye Newbie

      Hi all,

      When I deploy the JBPM example in the AS default Server,
      the server throw error, the error message is below:

      21:56:46,317 ERROR [STDERR] java.lang.IllegalAccessError: tried to access method net.sf.ehcache.CacheManager.()V from class org.hibernate.cache.EhCacheProvider
      21:56:46,317 ERROR [STDERR] at org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:124)
      21:56:46,317 ERROR [STDERR] at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:180)
      21:56:46,317 ERROR [STDERR] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1213)
      21:56:46,317 ERROR [STDERR] at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:90)
      21:56:46,317 ERROR [STDERR] at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:74)
      21:56:46,317 ERROR [STDERR] at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:78)
      21:56:46,317 ERROR [STDERR] at org.jbpm.persistence.db.DbPersistenceService.getMessagingSession(DbPersistenceService.java:235)
      21:56:46,317 ERROR [STDERR] at org.jbpm.JbpmContext.getMessagingSession(JbpmContext.java:521)
      21:56:46,317 ERROR [STDERR] at org.jbpm.msg.db.DbMessageService.(DbMessageService.java:49)
      21:56:46,317 ERROR [STDERR] at org.jbpm.msg.db.DbMessageServiceFactory.openService(DbMessageServiceFactory.java:32)
      21:56:46,317 ERROR [STDERR] at org.jbpm.svc.Services.getService(Services.java:136)
      21:56:46,317 ERROR [STDERR] at org.jbpm.svc.Services.getMessageService(Services.java:172)
      21:56:46,317 ERROR [STDERR] at org.jbpm.msg.command.CommandExecutorThread.executeCommand(CommandExecutorThread.java:112)
      21:56:46,317 ERROR [STDERR] at org.jbpm.msg.command.CommandExecutorThread.run(CommandExecutorThread.java:79)
      21:56:47,176 ERROR [STDERR] java.lang.IllegalAccessError: tried to access method net.sf.ehcache.CacheManager.()V from class org.hibernate.cache.EhCacheProvider
      21:56:47,176 ERROR [STDERR] at org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:124)
      21:56:47,176 ERROR [STDERR] at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:180)
      21:56:47,176 ERROR [STDERR] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1213)
      21:56:47,176 ERROR [STDERR] at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:90)
      21:56:47,176 ERROR [STDERR] at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:74)
      21:56:47,176 ERROR [STDERR] at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:78)
      21:56:47,176 ERROR [STDERR] at org.jbpm.persistence.db.DbPersistenceService.getSchedulerSession(DbPersistenceService.java:244)
      21:56:47,176 ERROR [STDERR] at org.jbpm.JbpmContext.getSchedulerSession(JbpmContext.java:529)
      21:56:47,176 ERROR [STDERR] at org.jbpm.scheduler.impl.SchedulerThread.executeTimers(SchedulerThread.java:103)
      21:56:47,176 ERROR [STDERR] at org.jbpm.scheduler.impl.SchedulerThread.run(SchedulerThread.java:70)


      I copy the file jbpm.sar and jbpm.war from jbpm-server to the Jboss AS default server, and then I run the default server, It throw errors like above, What should I do can solve this problem, Thanks very much!