[OFBiz] Users - OfBiz Startup: Unable to Bind UserTransaction...to JNDI

Kyle Tippetts ktippetts at zeroz.biz
Sat Jun 12 22:25:35 EDT 2004


Yep. Maybe someone could explain why hostnames in the hosts file would
make a difference (I'm still a neophyte in Linux/Unix, and of course
this is a bit OT)...

Here was the first line in my hosts file:

127.0.0.1    localhost.localdomain    jediknight2

Here's what I changed it to and then was able to successfully start
ofbiz:

127.0.0.1    localhost   jediknight2   localhost.localdomain

Just thought I'd follow up on what I found out.

--Kyle

On Sat, 2004-06-12 at 20:14, Kyle Tippetts wrote:
> No firewall running (service iptables status reports ACCEPT policy for
> INPUT, OUTPUT, and FORWARD chains). I've also played with the classpath
> to see if there were any conflicting things there, but to no avail.
> 
> I monkeyed with /etc/hosts and now the exception is:
> 
> <snip>
> org.ofbiz.base.start.StartupException: null (Unable to lookup bound
> objects (javax.transaction.UserTransaction))
> 	at
> org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:129)
> 	at
> org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:73)
> 	at org.ofbiz.base.start.Start.startServer(Start.java:206)
> 	at org.ofbiz.base.start.Start.start(Start.java:254)
> 	at org.ofbiz.base.start.Start.main(Start.java:325)
> <snip>
> 
> I've also changed the RMI Service Dispatcher ip in ofbiz-containers.xml
> and the java.naming.provider.url in jndi.properties to my notebook's
> network ip (192.168.0.161) and 'localhost', but that doesn't make a
> difference either.
> 
> I'm stumped.
> 
> --Kyle
> 
> On Sat, 2004-06-12 at 15:27, David Jones wrote:
> > I have seen this sort of thing on RedHat before, try turning off the 
> > firewall...
> > 
> > Later,
> > -David
> > 
> > 
> > On Jun 11, 2004, at 8:33 PM, Kyle Tippetts wrote:
> > 
> > > I've been struggling with this ofbiz startup issue on my dev notebook
> > > for a couple of weeks now. I've searched the mailing list archive and
> > > tried the solutions I found there (ensuring ports 1099 and 2000 were 
> > > not
> > > in use, changing the port numbers in ofbiz-containers.xml and
> > > jndi.properties....). Yet I still get this error:
> > >
> > > <console.log snip>
> > > 1077 [ ComponentContainer.java:135:INFO ] All components loaded
> > > 3540 [         TraceCarol.java:125:INFO ] Name service for iiop is
> > > started on port 2000
> > > 3583 [         TraceCarol.java:125:INFO ] Name service for jrmp is
> > > started on port 1099
> > > 3604 [               Jotm.java:113:INFO ] JOTM started with a local
> > > transaction factory which is not bound.
> > > 3605 [               Jotm.java:124:INFO ] CAROL initialization
> > > org.ofbiz.base.start.StartupException: null (Unable to bind
> > > UserTransaction/TransactionManager to JNDI
> > > (MultiOrbInitialContext.MultiOrbInitialContext() failed:
> > > javax.naming.CommunicationException: Cannot connect to ORB [Root
> > > exception is org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201
> > > completed: No]))
> > > .
> > > .
> > > .
> > > <console.log snip>
> > >
> > > I added some debug code to JotmContainer.java, and I've been able to
> > > narrow the problem down to the InitialContext ic = new InitialContext()
> > > call...the Container exception gets thrown here.
> > >
> > > I'm running RedHat 9.0 and jdk1.4.2_04; I'm not running anything else
> > > (no httpd, other application servers, etc.). Has anyone else ran into
> > > this? The funny thing is I've another RH9 box that I can run on without
> > > any problems. I've compared the processes running on each and don't
> > > immediately see any vast differences. I've also set up both java
> > > environments pretty much the same, and I'm just not sure what's going
> > > on...
> > >
> > > Any help or suggestions would be greatly appreciated.
> > >
> > > --Kyle
> > > -------------------------------------------------------
> > > --Kyle Tippetts
> > > --Dark Canyon Development
> > > --ktippetts at zeroz.biz
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe at ofbiz.dev.java.net
> > > For additional commands, e-mail: users-help at ofbiz.dev.java.net
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at ofbiz.dev.java.net
> For additional commands, e-mail: users-help at ofbiz.dev.java.net
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at ofbiz.dev.java.net
For additional commands, e-mail: users-help at ofbiz.dev.java.net






More information about the Users mailing list