You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by brijesh <br...@gmail.com> on 2009/12/23 10:53:50 UTC

Database configuration error - [ODE JBI Deployment]

Hello there , 

I am trying to deploy ODE version 1.3 JBI deployment in servicemix.war 3.4  
version. When I deploy the component got deployed , but while starting the
component from console,  I am getting 'Database configuration error' .
Complete error stack as below.  

<loc-message>Database configuration error.</loc-message>
<stack-trace><![CDATA[javax.jbi.JBIException: Database configuration error.

	at org.apache.ode.jbi.OdeLifeCycle.initDataSource(OdeLifeCycle.java:181)

	at org.apache.ode.jbi.OdeLifeCycle.init(OdeLifeCycle.java:114)

	at
org.apache.servicemix.jbi.framework.ComponentMBeanImpl.init(ComponentMBeanImpl.java:201)

	at
org.apache.servicemix.jbi.framework.ComponentMBeanImpl.doStart(ComponentMBeanImpl.java:287)

	at
org.apache.servicemix.jbi.framework.ComponentMBeanImpl.start(ComponentMBeanImpl.java:216)

	at
org.apache.servicemix.jbi.framework.AdminCommandsService.startComponent(AdminCommandsService.java:156)

	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

	at java.lang.reflect.Method.invoke(Method.java:597)

	at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)

	at
org.apache.servicemix.jbi.management.BaseStandardMBean.invoke(BaseStandardMBean.java:323)

	at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)

	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)

	at
org.springframework.jmx.access.MBeanClientInterceptor.invokeOperation(MBeanClientInterceptor.java:371)

	at
org.springframework.jmx.access.MBeanClientInterceptor.invoke(MBeanClientInterceptor.java:302)

	at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)

	at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)

	at $Proxy51.startComponent(Unknown Source)

	at
org.apache.servicemix.web.controller.ComponentLifeCycle.handleRequest(ComponentLifeCycle.java:57)

	at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)

	at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:857)

	at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792)

	at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:475)

	at
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:440)

	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

	at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)

	at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

	at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)

	at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

	at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)

	at
org.apache.servicemix.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:81)

	at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)

	at
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)

	at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)

	at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)

	at
weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

	at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)

	at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)

	at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

	at weblogic.security.service.SecurityManager.runAs(Unknown Source)

	at
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)

	at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)

	at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)

	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)

	at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

Caused by: java.lang.RuntimeException: TransactionManager is not
recoverable.

	at org.apache.ode.il.dbutil.Database.initInternalDb(Database.java:180)

	at org.apache.ode.il.dbutil.Database.initEmbeddedDb(Database.java:233)

	at org.apache.ode.il.dbutil.Database.initDataSource(Database.java:148)

	at org.apache.ode.il.dbutil.Database.start(Database.java:99)

	at org.apache.ode.jbi.OdeLifeCycle.initDataSource(OdeLifeCycle.java:177)

	... 46 more



The following is ode.properties file, 

#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.
#

# ODE-JBI Configuraiton Properties

# Process Identifier Namespace [QNAME]
# Namespace for processes created using the JBI integration.
# This will be the namespace of the process identifiers (PIDs)
ode-jbi.pidNamespace=urn:ode-jbi

# Allow Incomplete Deployment ("true","false")
# Should incomplete deployments be allowed? An incomplete deployment
# arises when a service unit contains multiple processes and not all
# of the processes can be deployed. If incomplete deployments are
# allowed (true), the service unit will report success if any of the
# processes can be deployed. If not allowed (false), a failure in
# one process will prevent all processes from being deployed.
ode-jbi.allowIncompleteDeployment=false

# Database Mode ("INTERNAL", "EXTERNAL", "EMBEDDED")
# What kind of database should ODE use?
#   * "EMBEDDED" - ODE will create its own embbeded database (Derby)
#              and connection pool (Minerva).
#   * "EXTERNAL" - ODE will use an app-server provided database and pool.
#                  The "ode-jbi.db.ext.dataSource" property will need to
#                  be set.
#   * "INTERNAL" - ODE will create its own connection pool for a user-
#                  specified JDBC URL and driver.
ode-jbi.db.mode=EMBEDDED

# External Database [JNDI Name]
# JNDI Name of the DataSource for the ODE database. This is only
# used if the "ode-jbi.db.mode" property is set to "EXTERNAL"
# ode-jbi.db.ext.dataSource=java:comp/env/jdbc/ode

# Embedded Database Name [String]
# Name of the embedded Derby database. This is only used if the
# "ode-jbi.db.mode" property is set to "EMBEDDED".
ode-jbi.db.emb.name=hibdb
ode-jbi.db.emb.name=jpadb

# Internal Database Configuration
#ode-jbi.db.int.jdbcurl=jdbc:mysql://localhost/ode?user=sa
#ode-jbi.db.int.driver=com.mysql.jdbc.Driver


# DAO Connection Factory class.
# uncomment the following for hibernate.
#ode-jbi.dao.factory=org.apache.ode.daohib.bpel.BpelDAOConnectionFactoryImpl

# Class name of the message mapper that should be used to convert message
# between ODE / NMS.
# org.apache.ode.jbi.msgmap.JbiWsdl11WrapperMapper - use JBI WSDL 1.1
"wrapped"
# org.apache.ode.jbi.msgmap.ServiceMixMapper
# org.apache.ode.jbi.msgmap.DocLitMapper
ode-jbi.messageMapper=org.apache.ode.jbi.msgmap.ServiceMixMapper

# BPEL Event Listener
# Uncomment the following for a debug output of BPEL navigation events.
#ode-jbi.event.listeners=org.apache.ode.bpel.common.evt.DebugBpelEventListener
#debugeventlistener.dumpToStdOut=on/off



-- 
View this message in context: http://old.nabble.com/Database-configuration-error----ODE-JBI-Deployment--tp26897646p26897646.html
Sent from the Apache Ode User mailing list archive at Nabble.com.


where to find Error log and how to fix Internal error

Posted by Pascal Aho <P....@gmx.net>.
Hello there,

I use ODE 1.3.2 and Tomcat 6.0.20 and the default database. I don't make any configuration for the database. 

First of all i would like to know where i can find the log file for the errors. I look for it in the logs repository of Tomcat, but in the localhost and the catalina files I can't find any error message. Where Can i find it so that i can post it if I have question qbout an error.

I have somme problem. I get an error when I call the method getVariableInfo of the class ProcessAndInstanceManagementImpl in my code. Following error occurs: 

org.apache.ode.bpel.iapi.ContextException: Internal Error, could not begin
transaction.

do someone know this error und how I can fix it?

Thank in advance

Cheers,

Pascal.

-- 
Preisknaller: GMX DSL Flatrate für nur 16,99 Euro/mtl.!
http://portal.gmx.net/de/go/dsl02