5 Replies Latest reply on Apr 16, 2007 10:04 AM by mputz

    deploying bpel as a service in jboss

    asmasediki

      hi
      i'm trying to deploy bpel as a service in jboss but i have always some errors when i try to run jboss.
      i specified the default datasource described in jbpm-bpel-ds.xml as my datasource

      <jndi-name>JbpmBpelDS</jndi-name>
       <connection-url>jdbc:hsqldb:C:\dev\jboss-4.0.4.GA\server\default\data\hypersonic\JbpmBpel</connection-url>
       <driver-class>org.hsqldb.jdbcDriver</driver-class>
       <user-name>sa</user-name>
       <password />
       <min-pool-size>5</min-pool-size>
       <max-pool-size>20</max-pool-size>
       <idle-timeout-minutes>0</idle-timeout-minutes>
      - <!-- <check-valid-connection-sql>SELECT 1</check-valid-connection-sql>
       -->
       <track-statements />
       </local-tx-datasource>
       </datasources>


      then i created a session factory using eclipse
      i customized build.properties
      and in hibernate.cfg.xml
      <?xml version='1.0' encoding='utf-8'?>
      <!DOCTYPE hibernate-configuration PUBLIC
       "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
       "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
      <hibernate-configuration>
      
      <session-factory>
      
      <property name="hibernate.session_factory_name">java:comp/hibernate/SessionFactory</property>
      
      <!-- SQL dialect
      <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property> -->
      <!-- DataSource properties (begin) -->
      <property name="hibernate.connection.datasource">
      java:/JbpmBpelDS </property>
      <property name="hibernate.hbm2ddl.auto">update</property>
      <property name="hibernate.cache.provider_class">
      org.hibernate.cache.EhCacheProvider </property>
      <!-- DataSource properties (end) -->
      
      <!-- JTA transaction properties (begin) -->
      <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
      <property name="jta.UserTransaction">java:comp/UserTransaction</property>
       <!-- JTA transaction properties (end) -->
      
      <property name="jndi.url">C:\dev\jboss-4.0.4.GA\server\default\deploy\JbpmBpelDS</property>
      

      then i specified mapping files

      could you please indicate me step by step how to configure all this files and what i can change in jboss configuration to deploy seccussfully bpel as a service?
      thinks for help

        • 1. Re: deploying bpel as a service in jboss
          kukeltje

          - what are the errors you get?
          - what version of jbpm-bpel
          - ...

          http://www.catb.org/~esr/faqs/smart-questions.html

          • 2. Re: deploying bpel as a service in jboss
            asmasediki

            I m using
            jbpm-bpel 1.1.beta3
            jbpm-jpdl 3.2.GA
            jboss-4.04.GA
            after mapping

            15:08:19,984 INFO [HbmBinder] Mapping collection: org.jbpm.bpel.wsdl.impl.MessageImpl.parts -> WSDL_PART
            15:08:19,984 INFO [HbmBinder] Mapping collection: org.jbpm.graph.action.Script.variableAccesses -> JBPM_VARIABLEACCESS
            15:08:19,984 INFO [HbmBinder] Mapping collection: org.jbpm.taskmgmt.def.TaskMgmtDefinition.swimlanes -> JBPM_SWIMLANE
            15:08:19,984 INFO [HbmBinder] Mapping collection: org.jbpm.taskmgmt.def.TaskMgmtDefinition.tasks -> JBPM_TASK
            15:08:20,437 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.provider.url=C:\dev\jboss-4.0.4.GA\server\default\deploy\JbpmBpelDS}
            15:08:20,468 FATAL [DatasourceConnectionProvider] Could not find datasource: java:/JbpmBpelDS
            javax.naming.NameNotFoundException: JbpmBpelDS not bound
             at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
             at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
             at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
             at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
             at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
             at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
             at javax.naming.InitialContext.lookup(Unknown Source)
             at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
             at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
             at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
             at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:385)
             at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:61)
             at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1928)
             at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1211)
             at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:91)
             at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:94)
             at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:98)
             at org.jbpm.persistence.db.DbPersistenceService.getJobSession(DbPersistenceService.java:281)
             at org.jbpm.JbpmContext.getJobSession(JbpmContext.java:526)
             at org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread.java:109)
             at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:56)
            15:08:20,484 ERROR [JobExecutorThread] exception in job executor thread. waiting 30000 milliseconds
            org.hibernate.HibernateException: Could not find datasource
             at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:56)
             at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
             at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
             at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:385)
             at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:61)
             at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1928)
             at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1211)
             at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:91)
             at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:94)
             at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:98)
             at org.jbpm.persistence.db.DbPersistenceService.getJobSession(DbPersistenceService.java:281)
             at org.jbpm.JbpmContext.getJobSession(JbpmContext.java:526)
             at org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread.java:109)
             at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:56)
            Caused by: javax.naming.NameNotFoundException: JbpmBpelDS not bound
             at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
             at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
             at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
             at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
             at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
             at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
             at javax.naming.InitialContext.lookup(Unknown Source)
             at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
             ... 13 more
            15:08:25,890 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
            15:08:28,703 INFO [MailService] Mail Service bound to java:/Mail
            15:08:29,625 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
            15:08:29,843 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
            15:08:30,015 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
            15:08:30,203 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=JbpmBpelDS' to JNDI name 'java:JbpmBpelDS'
            15:08:30,390 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
            15:08:30,593 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
            15:08:30,781 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
            15:08:31,921 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
            15:08:32,890 INFO [A] Bound to JNDI name: queue/A
            15:08:32,906 INFO [B] Bound to JNDI name: queue/B
            15:08:32,906 INFO [C] Bound to JNDI name: queue/C
            15:08:32,906 INFO [D] Bound to JNDI name: queue/D
            15:08:32,921 INFO [ex] Bound to JNDI name: queue/ex
            15:08:32,984 INFO [testTopic] Bound to JNDI name: topic/testTopic
            15:08:32,984 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
            15:08:32,984 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
            15:08:33,000 INFO [testQueue] Bound to JNDI name: queue/testQueue
            15:08:33,218 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
            15:08:33,312 INFO [DLQ] Bound to JNDI name: queue/DLQ
            15:08:33,796 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
            15:08:33,984 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
            15:08:34,531 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
            
            --- Packages waiting for a deployer ---
            org.jboss.deployment.DeploymentInfo@7ddde155 { url=file:/C:/dev/jboss-4.0.4.GA/server/default/deploy/JbpmBpelDS.xml }
             deployer: null
             status: null
             state: INIT_WAITING_DEPLOYER
             watch: file:/C:/dev/jboss-4.0.4.GA/server/default/deploy/JbpmBpelDS.xml
             altDD: null
             lastDeployed: 1176728914531
             lastModified: 1176728914531
             mbeans:
            
            --- Incompletely deployed packages ---
            org.jboss.deployment.DeploymentInfo@7ddde155 { url=file:/C:/dev/jboss-4.0.4.GA/server/default/deploy/JbpmBpelDS.xml }
             deployer: null
             status: null
             state: INIT_WAITING_DEPLOYER
             watch: file:/C:/dev/jboss-4.0.4.GA/server/default/deploy/JbpmBpelDS.xml
             altDD: null
             lastDeployed: 1176728914531
             lastModified: 1176728914531
             mbeans:
            
            
            15:08:34,812 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
            15:08:35,281 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
            15:08:35,312 INFO [JkMain] Jk running ID=0 time=0/125 config=null
            15:08:35,328 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)] Started in 54s:110ms
            15:08:50,687 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.provider.url=C:\dev\jboss-4.0.4.GA\server\default\deploy\JbpmBpelDS}
            15:08:50,687 INFO [DatasourceConnectionProvider] Using datasource: java:/JbpmBpelDS
            15:08:50,703 INFO [SettingsFactory] RDBMS: HSQL Database Engine, version: 1.8.0
            15:08:50,703 INFO [SettingsFactory] JDBC driver: HSQL Database Engine Driver, version: 1.8.0
            15:08:50,796 INFO [Dialect] Using dialect: org.hibernate.dialect.HSQLDialect
            15:08:50,859 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.transaction.JTATransactionFactory
            15:08:50,875 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.provider.url=C:\dev\jboss-4.0.4.GA\server\default\deploy\JbpmBpelDS}
            15:08:50,890 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
            15:08:50,890 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
            15:08:50,890 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
            15:08:50,890 INFO [SettingsFactory] JDBC batch size: 15
            15:08:50,890 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
            15:08:50,890 INFO [SettingsFactory] Scrollable result sets: enabled
            15:08:50,890 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
            15:08:50,890 INFO [SettingsFactory] Connection release mode: auto
            15:08:50,890 INFO [SettingsFactory] Default batch fetch size: 1
            15:08:50,890 INFO [SettingsFactory] Generate SQL with comments: disabled
            15:08:50,890 INFO [SettingsFactory] Order SQL updates by primary key: disabled
            15:08:50,890 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
            15:08:50,968 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
            15:08:50,968 INFO [SettingsFactory] Query language substitutions: {}
            15:08:50,968 INFO [SettingsFactory] Second-level cache: enabled
            15:08:50,968 INFO [SettingsFactory] Query cache: disabled
            15:08:50,968 INFO [SettingsFactory] Cache provider: org.hibernate.cache.EhCacheProvider
            15:08:51,000 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
            15:08:51,000 INFO [SettingsFactory] Structured second-level cache entries: disabled
            15:08:51,031 INFO [SettingsFactory] Statistics: disabled
            15:08:51,031 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
            15:08:51,031 INFO [SettingsFactory] Default entity-mode: pojo
            15:08:51,203 INFO [SessionFactoryImpl] building session factory
            15:08:51,531 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Node]; using defaults.
            15:08:52,390 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.integration.def.Correlation]; using defaults.
            15:08:52,421 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Action]; using defaults.
            15:08:52,609 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.sublang.def.Snippet]; using defaults.
            15:08:52,812 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.wsdl.impl.PortTypeImpl]; using defaults.
            15:08:53,000 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.graph.basic.Assign$Copy]; using defaults.
            15:08:53,203 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.endpointref.EndpointReference]; using defaults.
            15:08:53,671 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.integration.def.Replier]; using defaults.
            15:08:53,796 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.ExceptionHandler]; using defaults.
            15:08:53,968 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.wsdl.impl.OperationImpl]; using defaults.
            15:08:54,140 WARN [EhCacheProvider] Could not find configuration [org.jbpm.module.def.ModuleDefinition]; using defaults.
            15:08:54,187 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.graph.exe.LinkInstance]; using defaults.
            15:08:54,343 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.graph.exe.FaultInstance]; using defaults.
            15:08:55,031 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.graph.basic.Assign$From]; using defaults.
            15:08:55,265 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.wsdl.impl.OperationMember]; using defaults.
            15:08:55,312 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.integration.def.Correlations]; using defaults.
            15:08:55,453 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.graph.def.LinkDefinition]; using defaults.
            15:08:55,500 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.wsdl.impl.PartnerLinkTypeImpl$RoleImpl]; using defaults.
            15:08:56,015 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Event]; using defaults.
            15:08:56,046 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.graph.def.Namespace]; using defaults.
            15:08:56,531 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.graph.basic.Assign$To]; using defaults.
            15:08:56,781 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.graph.exe.ScopeInstance]; using defaults.
            15:08:56,890 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.wsdl.impl.PartnerLinkTypeImpl]; using defaults.
            15:08:57,046 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Transition]; using defaults.
            15:08:58,562 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.integration.exe.CorrelationSetInstance]; using defaults.
            15:09:01,171 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.graph.def.Import]; using defaults.
            15:09:02,328 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.wsdl.impl.PropertyImpl]; using defaults.
            15:09:02,390 WARN [EhCacheProvider] Could not find configuration [org.jbpm.taskmgmt.def.TaskController]; using defaults.
            15:09:02,625 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.ProcessDefinition]; using defaults.
            15:09:03,468 WARN [EhCacheProvider] Could not find configuration [org.jbpm.instantiation.Delegation]; using defaults.
            15:09:04,640 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.wsdl.impl.PropertyAliasImpl]; using defaults.
            15:09:04,703 WARN [EhCacheProvider] Could not find configuration [org.jbpm.taskmgmt.def.Task]; using defaults.
            15:09:05,531 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.wsdl.impl.PartImpl]; using defaults.
            15:09:07,421 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.variable.exe.MessageValue]; using defaults.
            15:09:07,484 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.integration.exe.PartnerLinkInstance]; using defaults.
            15:09:07,656 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.integration.def.PartnerLinkDefinition]; using defaults.
            15:09:07,906 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.wsdl.impl.MessageImpl]; using defaults.
            15:09:08,312 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.integration.def.Invoker]; using defaults.
            15:09:09,250 WARN [EhCacheProvider] Could not find configuration [org.jbpm.context.def.VariableAccess]; using defaults.
            15:09:12,625 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.variable.def.VariableDefinition]; using defaults.
            15:09:12,859 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.integration.def.Receiver]; using defaults.
            15:09:13,265 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.integration.def.CorrelationSetDefinition]; using defaults.
            15:09:14,093 WARN [EhCacheProvider] Could not find configuration [org.jbpm.taskmgmt.def.TaskMgmtDefinition.tasks]; using defaults.
            15:09:14,093 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.node.ProcessState.variableAccesses]; using defaults.
            15:09:14,109 WARN [EhCacheProvider] Could not find configuration [org.jbpm.taskmgmt.def.Swimlane.tasks]; using defaults.
            15:09:14,109 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.graph.def.BpelDefinition.namespaces]; using defaults.
            15:09:14,109 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.ProcessDefinition.exceptionHandlers]; using defaults.
            15:09:14,109 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Transition.exceptionHandlers]; using defaults.
            15:09:14,140 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.ProcessDefinition.nodes]; using defaults.
            15:09:14,140 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.node.TaskNode.tasks]; using defaults.
            15:09:14,140 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Node.arrivingTransitions]; using defaults.
            15:09:14,140 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Node.events]; using defaults.
            15:09:14,156 WARN [EhCacheProvider] Could not find configuration [org.jbpm.bpel.sublang.def.Snippet.namespaces]; using defaults.
            15:09:14,156 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.action.Script.variableAccesses]; using defaults.
            15:09:14,250 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.ProcessDefinition.events]; using defaults.
            15:09:14,250 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Node.leavingTransitions]; using defaults.
            15:09:14,250 WARN [EhCacheProvider] Could not find configuration [org.jbpm.taskmgmt.def.TaskController.variableAccesses]; using defaults.
            15:09:15,671 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.node.Decision.decisionConditions]; using defaults.
            15:09:15,671 WARN [EhCacheProvider] Could not find configuration [org.jbpm.file.def.FileDefinition.processFiles]; using defaults.
            15:09:15,671 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.ProcessDefinition.actions]; using defaults.
            15:09:15,671 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.ProcessDefinition.definitions]; using defaults.
            15:09:18,296 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Event.actions]; using defaults.
            15:09:18,296 WARN [EhCacheProvider] Could not find configuration [org.jbpm.taskmgmt.def.Task.events]; using defaults.
            15:09:18,296 WARN [EhCacheProvider] Could not find configuration [org.jbpm.taskmgmt.def.TaskMgmtDefinition.swimlanes]; using defaults.
            15:09:18,296 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.SuperState.nodes]; using defaults.
            15:09:18,296 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.ExceptionHandler.actions]; using defaults.
            15:09:18,296 WARN [EhCacheProvider] Could not find configuration [org.jbpm.taskmgmt.def.Task.exceptionHandlers]; using defaults.
            15:09:18,390 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Node.exceptionHandlers]; using defaults.
            15:09:18,390 WARN [EhCacheProvider] Could not find configuration [org.jbpm.graph.def.Transition.events]; using defaults.
            15:09:21,312 INFO [SessionFactoryObjectFactory] Factory name: java:comp/hibernate/SessionFactory
            15:09:21,312 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.provider.url=C:\dev\jboss-4.0.4.GA\server\default\deploy\JbpmBpelDS}
            15:09:21,312 INFO [NamingHelper] Creating subcontext: hibernate
            15:09:21,312 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: java:comp/hibernate/SessionFactory
            15:09:21,312 WARN [SessionFactoryObjectFactory] InitialContext did not implement EventContext
            15:09:21,328 INFO [SchemaUpdate] Running hbm2ddl schema update



            and in the end

            15:09:22,562 INFO [TableMetadata] table found: PUBLIC.WSDL_PORTTYPE
            15:09:22,562 INFO [TableMetadata] columns: [namespace_, imports_, localname_, id]
            15:09:22,562 INFO [TableMetadata] foreign keys: [fkff3104b6c43eb4bf]
            15:09:22,562 INFO [TableMetadata] indexes: [sys_pk_304, sys_idx_305]
            15:09:22,578 INFO [SchemaUpdate] schema update complete
            15:09:23,296 WARN [FromElementType] Using non-qualified column reference [processInstance -> ([PROCESSINSTANCE_])]
            15:09:23,437 WARN [FromElementType] Using non-qualified column reference [isSuspended -> ([ISSUSPENDED_])]
            15:09:23,437 WARN [FromElementType] Using non-qualified column reference [token -> ([TOKEN_])]
            15:09:23,656 WARN [FromElementType] Using non-qualified column reference [id -> ([ID_])]
            15:09:23,781 WARN [FromElementType] Using non-qualified column reference [processInstance -> ([PROCESSINSTANCE_])]
            15:09:24,343 WARN [FromElementType] Using non-qualified column reference [isSuspended -> ([ISSUSPENDED_])]
            15:09:24,343 WARN [FromElementType] Using non-qualified column reference [token -> ([TOKEN_])]
            15:09:24,437 WARN [FromElementType] Using non-qualified column reference [processInstance -> ([PROCESSINSTANCE_])]
            


            • 3. Re: deploying bpel as a service in jboss
              mputz

              Try to delete the 'jndi.url' property from hibernate.cfg.xml

              Regards, Martin

              • 4. Re: deploying bpel as a service in jboss
                asmasediki

                thinks Martin,
                but i still have the same errors. i wonder how it can't bind data source ?
                i put the xml file JbpmBpelDS.xml under jboss/server/default/deploy

                15:50:37,375 FATAL [DatasourceConnectionProvider] Could not find datasource: java:/JbpmBpelDS
                javax.naming.NameNotFoundException: JbpmBpelDS not bound
                 at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
                 at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
                 at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
                 at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
                 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
                 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
                 at javax.naming.InitialContext.lookup(Unknown Source)
                 at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
                 at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
                 at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
                 at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:385)
                 at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:61)
                 at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1928)
                 at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1211)
                 at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:91)
                 at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:94)
                 at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:98)
                 at org.jbpm.persistence.db.DbPersistenceService.getJobSession(DbPersistenceService.java:281)
                 at org.jbpm.JbpmContext.getJobSession(JbpmContext.java:526)
                 at org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread.java:109)
                 at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:56)
                15:50:37,375 ERROR [JobExecutorThread] exception in job executor thread. waiting 30000 milliseconds
                org.hibernate.HibernateException: Could not find datasource
                 at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:56)
                 at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
                 at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
                 at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:385)
                 at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:61)
                 at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1928)
                 at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1211)
                 at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:91)
                 at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:94)
                 at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:98)
                 at org.jbpm.persistence.db.DbPersistenceService.getJobSession(DbPersistenceService.java:281)
                 at org.jbpm.JbpmContext.getJobSession(JbpmContext.java:526)
                 at org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread.java:109)
                 at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:56)
                Caused by: javax.naming.NameNotFoundException: JbpmBpelDS not bound
                 at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
                 at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
                 at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
                 at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
                 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
                 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
                 at javax.naming.InitialContext.lookup(Unknown Source)
                 at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
                 ... 13 more


                • 5. Re: deploying bpel as a service in jboss
                  mputz

                  In that case you should check if your datasource configuration deployed without errors. You could use the jmx-console to display the contents of the JNDI tree:

                  http://jboss.org/wiki/Wiki.jsp?page=DisplayTheJDNITreeWithTheJMXConsole

                  If you have problems setting up a datasource for HSQLDB I'd suggest checking out the templates that can be found in JBOSS_HOME/docs/examples/jca.

                  Regards, Martin