Introducing the all-new TIBCO Community site!

For current users, please click "Sign In" to reset your password and access the enhanced features. If you're a first-time visitor, we extend a warm welcome—click "Sign Up" to become a part of the TIBCO Community!

If you're seeking alternative community sites, explore ibi, Jaspersoft, and Spotfire.

Jump to content

Deploying a Simple BusinessWorks Container Edition Service to DockerHow to deal with it


simian yang

Recommended Posts

I use bwce to develop a simple httpReceiver process.The process queries some data and responses them to the browser.There are no problems running locally.According to the tibco documents,I packet the process into xxx.war and then deploy them into docker.

1)I make a base imagebwce-runtime.zip is added)

here is my dockerFile:

FROM debian:jessie-slim

MAINTAINER TIBCO Software Inc.

ADD . /

RUN chmod 755 /scripts/*.sh && apt-get update && apt-get --no-install-recommends -y install unzip ssh net-tools && apt-get clean && rm -rf /var/lib/apt/lists/*

ENTRYPOINT ["/scripts/start.sh"]

2)make a bwapp image

here is my dockerFile:

FROM test:1.0

MAINTAINER TIBCO Software Inc.

ADD xxx.war /

COPY ojdbc6-10.2.0.4.0.jar /resources/addons/jars

EXPOSE 8888

I exec the command :

docker run -i -t -p 8888:8888 test4:1.0 /bin/bash

 

but the error is occurred . Here's the error log:

 

BW_PROFILE is set to 'default.substvar'

TIBCO BusinessWorks Container Edition version 2.3.4, build V10, 2018-05-15

03:35:29.770 INFO [main] com.tibco.thor.frwk - bwappnode TIBCO BusinessWorks Container Edition version 2.3.4, build V10, 2018-05-15 initialized using logging config /tmp/tibco.home/bwce/2.3/config/logback.xml

-------------------------------------------

Starting AppNode framework

-------------------------------------------

!SESSION 2018-08-07 03:35:37.935 -----------------------------------------------

eclipse.buildId=unknown

java.version=1.8.0_162

java.vendor=Oracle Corporation

BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US

!ENTRY com.tibco.neo.eclipse.support.osgi 4 0 2018-08-07 03:35:37.938

!MESSAGE FrameworkEvent ERROR

!STACK 0

org.osgi.framework.BundleException: Exception in com.tibco.neo.component.osgi.NeoOSGiBundleActivator.start() of bundle com.tibco.neo.eclipse.support.osgi.

at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:792)

at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)

at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)

at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)

at org.eclipse.osgi.container.Module.doStart(Module.java:571)

at org.eclipse.osgi.container.Module.start(Module.java:439)

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)

at org.eclipse.osgi.container.SystemModule.startWorker(SystemModule.java:242)

at org.eclipse.osgi.container.Module.doStart(Module.java:571)

at org.eclipse.osgi.container.Module.start(Module.java:439)

at org.eclipse.osgi.container.SystemModule.start(SystemModule.java:172)

at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:393)

at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:412)

at org.eclipse.osgi.launch.Equinox.start(Equinox.java:115)

at com.tibco.bw.thor.admin.node.commands.StartLocalCommand.start(StartLocalCommand.java:480)

at com.tibco.bw.thor.admin.node.commands.StartLocalCommand.doExecute(StartLocalCommand.java:180)

at com.tibco.bw.thor.management.cli.commands.AbstractCommand.execute(AbstractCommand.java:62)

at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)

at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)

at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)

at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)

at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)

at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)

at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)

at com.tibco.bw.thor.management.cli.commands.AbstractMain.o00000(AbstractMain.java:482)

at com.tibco.bw.thor.management.cli.commands.AbstractMain.o00000(AbstractMain.java:451)

at com.tibco.bw.thor.management.cli.commands.AbstractMain.mainLoop(AbstractMain.java:179)

at com.tibco.bw.thor.admin.node.Main.main(Main.java:36)

Caused by: java.lang.IllegalArgumentException: TIBCO-AMX-INFRA-002000: invalid null value

at com.tibco.neo.model.types.ComponentID.(ComponentID.java:31)

at com.tibco.neo.component.osgi.BundleMapKey.(BundleMapKey.java:27)

at com.tibco.neo.component.osgi.OSGiEMFPackageRegistryManager.init(OSGiEMFPackageRegistryManager.java:139)

at com.tibco.neo.component.osgi.NeoOSGiBundleActivator.start(NeoOSGiBundleActivator.java:67)

at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)

at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)

at java.security.AccessController.doPrivileged(Native Method)

at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)

... 29 more

Root exception:

java.lang.IllegalArgumentException: TIBCO-AMX-INFRA-002000: invalid null value

at com.tibco.neo.model.types.ComponentID.(ComponentID.java:31)

at com.tibco.neo.component.osgi.BundleMapKey.(BundleMapKey.java:27)

at com.tibco.neo.component.osgi.OSGiEMFPackageRegistryManager.init(OSGiEMFPackageRegistryManager.java:139)

at com.tibco.neo.component.osgi.NeoOSGiBundleActivator.start(NeoOSGiBundleActivator.java:67)

at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)

at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)

at java.security.AccessController.doPrivileged(Native Method)

at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)

at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)

at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)

at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)

at org.eclipse.osgi.container.Module.doStart(Module.java:571)

at org.eclipse.osgi.container.Module.start(Module.java:439)

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)

at org.eclipse.osgi.container.SystemModule.startWorker(SystemModule.java:242)

at org.eclipse.osgi.container.Module.doStart(Module.java:571)

at org.eclipse.osgi.container.Module.start(Module.java:439)

at org.eclipse.osgi.container.SystemModule.start(SystemModule.java:172)

at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:393)

at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:412)

at org.eclipse.osgi.launch.Equinox.start(Equinox.java:115)

at com.tibco.bw.thor.admin.node.commands.StartLocalCommand.start(StartLocalCommand.java:480)

at com.tibco.bw.thor.admin.node.commands.StartLocalCommand.doExecute(StartLocalCommand.java:180)

at com.tibco.bw.thor.management.cli.commands.AbstractCommand.execute(AbstractCommand.java:62)

at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)

at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)

at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)

at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)

at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)

at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)

at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)

at com.tibco.bw.thor.management.cli.commands.AbstractMain.o00000(AbstractMain.java:482)

at com.tibco.bw.thor.management.cli.commands.AbstractMain.o00000(AbstractMain.java:451)

at com.tibco.bw.thor.management.cli.commands.AbstractMain.mainLoop(AbstractMain.java:179)

at com.tibco.bw.thor.admin.node.Main.main(Main.java:36)

!ENTRY org.eclipse.osgi 4 0 2018-08-07 03:35:37.970

!MESSAGE FrameworkEvent ERROR

!STACK 0

org.osgi.framework.ServiceException: Exception in com.tibco.bw.thor.management.equinox.hook.BW6ProductEventHook.event()

at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.notifyHookPrivileged(ServiceRegistry.java:1288)

at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.notifyHooksPrivileged(ServiceRegistry.java:1263)

at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.notifyEventHooksPrivileged(EquinoxEventPublisher.java:186)

at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:146)

at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:75)

at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:67)

at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publis

Link to comment
Share on other sites

×
×
  • Create New...