I dont have a jndi.properties file in the classpath, however, based on 
what I have found in that file, I'm actually setting all those props in 
the Hashtable that I pass into the InitialContext constructor. As for 
the corba/iiop, I really just need to be able to initiate a 
UserTransaction from this java app. If there is a better, different way 
to do this, suggestions are welcomed :)

thanks,

-javier

David Jencks wrote:
> I know almost nothing about this, but it appears that your attempt to look
> up is going through a lot of sun corba/iiop classes.  I think that won't
> work.  I think if you want to use iiop you need to use jacorb or the more
> normal way is through plain rmi.  Do you have jndi.properties from the
> jboss client dir in your client classpath?
> 
> david jencks
> 
> On 2002.09.17 19:22:39 -0400 Javier A. Soltero wrote:
> 
>>Hi,
>>
>>I have a standalone java application which needs to issue a set of calls 
>>to a session bean deployed in JBoss 3.0.2. I am currently unable to do 
>>this due to what appears to be a configuration issue (missing properties 
>>files... see below).
>>
>>What I am doing is simple, doing a JNDI lookup for "UserTransaction" and 
>>then casting the return to a javax.transaction.UserTransaction object. 
>>This results in the following errors:
>>
>>Any help greatly appreciated.
>>
>>java.io.FileNotFoundException: 
>>/home/javier/dev/spider/build/covalent-eam/shell/./config/security.properties
>>
>>(No such file or directory)
>>         at java.io.FileInputStream.open(Native Method)
>>         at java.io.FileInputStream.<init>(FileInputStream.java:103)
>>         at 
>>com.sun.enterprise.util.Utility.getPropertiesFromFile(Utility.java:42)
>>         at com.sun.enterprise.iiop.POAEJBORB.<clinit>(POAEJBORB.java:78)
>>         at java.lang.Class.forName0(Native Method)
>>         at java.lang.Class.forName(Class.java:207)
>>         at org.omg.CORBA.ORB.create_impl(ORB.java:306)
>>         at org.omg.CORBA.ORB.init(ORB.java:345)
>>         at 
>>com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:138)
>>         at com.sun.enterprise.util.ORBManager.init(ORBManager.java:65)
>>         at 
>>com.sun.enterprise.naming.SerialInitContextFactory.<init>(SerialInitContextFactory.java:31)
>>         at 
>>sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>         at 
>>sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>         at 
>>sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
>>         at java.lang.Class.newInstance0(Class.java:296)
>>         at java.lang.Class.newInstance(Class.java:249)
>>         at 
>>javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:649)
>>         at 
>>javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
>>         at javax.naming.InitialContext.init(InitialContext.java:219)
>>         at javax.naming.InitialContext.<init>(InitialContext.java:175)
>>         at 
>>org.jboss.tm.usertx.client.ClientUserTransactionObjectFactory.getUserTransaction(ClientUserTransactionObjectFactory.java:47)
>>         at 
>>org.jboss.tm.usertx.client.ClientUserTransactionObjectFactory.getObjectInstance(ClientUserTransactionObjectFactory.java:68)
>>         at 
>>javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
>>         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:538)
>>         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:429)
>>         at javax.naming.InitialContext.lookup(InitialContext.java:347)
>>         at 
>>net.covalent.spider.bizapp.client.shell.EAMShell_import.beginTransaction(EAMShell_import.java:120)
>>         at 
>>net.covalent.spider.bizapp.client.shell.EAMShell_import.processCommand(EAMShell_import.java:91)
>>         at 
>>net.covalent.spider.bizapp.client.shell.EAMShell.processCommand(EAMShell.java:56)
>>         at 
>>net.covalent.util.shell.ShellBase.handleCommand(ShellBase.java:228)
>>         at 
>>net.covalent.util.shell.ShellBase.handleCommand(ShellBase.java:208)
>>         at net.covalent.util.shell.ShellBase.run(ShellBase.java:190)
>>         at 
>>net.covalent.spider.bizapp.client.shell.EAMShell.main(EAMShell.java:96)
>>java.io.FileNotFoundException: 
>>/home/javier/dev/spider/build/covalent-eam/shell/./config/ejb.properties 
>>(No such file or directory)
>>         at java.io.FileInputStream.open(Native Method)
>>         at java.io.FileInputStream.<init>(FileInputStream.java:103)
>>         at 
>>com.sun.enterprise.util.Utility.getPropertiesFromFile(Utility.java:42)
>>         at 
>>com.sun.enterprise.iiop.J2EEInitializer.<init>(J2EEInitializer.java:54)
>>         at 
>>sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>         at 
>>sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>         at 
>>sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
>>         at java.lang.Class.newInstance0(Class.java:296)
>>         at java.lang.Class.newInstance(Class.java:249)
>>         at 
>>com.sun.corba.ee.internal.Interceptors.PIORB.registerORBInitializers(PIORB.java:377)
>>         at 
>>com.sun.corba.ee.internal.Interceptors.PIORB.parseProperties(PIORB.java:347)
>>         at 
>>com.sun.corba.ee.internal.TxPOA.TxPIORB.parseProperties(TxPIORB.java:116)
>>         at com.sun.corba.ee.internal.corba.ORB.set_parameters(ORB.java:461)
>>         at 
>>com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:156)
>>         at 
>>com.sun.corba.ee.internal.Interceptors.PIORB.set_parameters(PIORB.java:336)
>>         at org.omg.CORBA.ORB.init(ORB.java:346)
>>         at 
>>com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:138)
>>         at com.sun.enterprise.util.ORBManager.init(ORBManager.java:65)
>>         at 
>>com.sun.enterprise.naming.SerialInitContextFactory.<init>(SerialInitContextFactory.java:31)
>>         at 
>>sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>         at 
>>sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>         at 
>>sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
>>         at java.lang.Class.newInstance0(Class.java:296)
>>         at java.lang.Class.newInstance(Class.java:249)
>>         at 
>>javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:649)
>>         at 
>>javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
>>         at javax.naming.InitialContext.init(InitialContext.java:219)
>>         at javax.naming.InitialContext.<init>(InitialContext.java:175)
>>         at 
>>org.jboss.tm.usertx.client.ClientUserTransactionObjectFactory.getUserTransaction(ClientUserTransactionObjectFactory.java:47)
>>         at 
>>org.jboss.tm.usertx.client.ClientUserTransactionObjectFactory.getObjectInstance(ClientUserTransactionObjectFactory.java:68)
>>         at 
>>javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
>>         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:538)
>>         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:429)
>>         at javax.naming.InitialContext.lookup(InitialContext.java:347)
>>         at 
>>net.covalent.spider.bizapp.client.shell.EAMShell_import.beginTransaction(EAMShell_import.java:120)
>>         at 
>>net.covalent.spider.bizapp.client.shell.EAMShell_import.processCommand(EAMShell_import.java:91)
>>         at 
>>net.covalent.spider.bizapp.client.shell.EAMShell.processCommand(EAMShell.java:56)
>>         at 
>>net.covalent.util.shell.ShellBase.handleCommand(ShellBase.java:228)
>>         at 
>>net.covalent.util.shell.ShellBase.handleCommand(ShellBase.java:208)
>>         at net.covalent.util.shell.ShellBase.run(ShellBase.java:190)
>>         at 
>>net.covalent.spider.bizapp.client.shell.EAMShell.main(EAMShell.java:96)
>>
>>Warning: unable to read transaction.interoperability config property
>>java.io.FileNotFoundException: 
>>/home/javier/dev/spider/build/covalent-eam/shell/./config/security.properties
>>
>>(No such file or directory)
>>         at java.io.FileInputStream.open(Native Method)
>>         at java.io.FileInputStream.<init>(FileInputStream.java:103)
>>         at 
>>com.sun.enterprise.util.Utility.getPropertiesFromFile(Utility.java:42)
>>         at 
>>com.sun.enterprise.iiop.security.SecurityMechanismSelector.<clinit>(SecurityMechanismSelector.java:102)
>>         at 
>>com.sun.enterprise.iiop.IIOPSSLSocketFactory.getEndPointInfo(IIOPSSLSocketFactory.java:211)
>>         at 
>>com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:73)
>>         at 
>>com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:68)
>>         at 
>>com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:70)
>>         at 
>>com.sun.corba.ee.internal.corba.InitialNamingClient.locateObject(InitialNamingClient.java:769)
>>         at 
>>com.sun.corba.ee.internal.corba.InitialNamingClient.getIORUsingHostInfo(InitialNamingClient.java:597)
>>         at 
>>com.sun.corba.ee.internal.corba.InitialNamingClient.resolveCorbaloc(InitialNamingClient.java:573)
>>         at 
>>com.sun.corba.ee.internal.corba.InitialNamingClient.resolveUsingORBInitRef(InitialNamingClient.java:544)
>>         at 
>>com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:1080)
>>         at 
>>com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:981)
>>         at 
>>com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.java:2425)
>>         at 
>>com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:52)
>>         at 
>>com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120)
>>         at javax.naming.InitialContext.lookup(InitialContext.java:347)
>>         at 
>>org.jboss.tm.usertx.client.ClientUserTransaction.createSession(ClientUserTransaction.java:278)
>>         at 
>>org.jboss.tm.usertx.client.ClientUserTransaction.getSession(ClientUserTransaction.java:308)
>>         at 
>>org.jboss.tm.usertx.client.ClientUserTransaction.begin(ClientUserTransaction.java:98)
>>         at 
>>net.covalent.spider.bizapp.client.shell.EAMShell_import.beginTransaction(EAMShell_import.java:121)
>>         at 
>>net.covalent.spider.bizapp.client.shell.EAMShell_import.processCommand(EAMShell_import.java:91)
>>         at 
>>net.covalent.spider.bizapp.client.shell.EAMShell.processCommand(EAMShell.java:56)
>>         at 
>>net.covalent.util.shell.ShellBase.handleCommand(ShellBase.java:228)
>>         at 
>>net.covalent.util.shell.ShellBase.handleCommand(ShellBase.java:208)
>>         at net.covalent.util.shell.ShellBase.run(ShellBase.java:190)
>>         at 
>>net.covalent.spider.bizapp.client.shell.EAMShell.main(EAMShell.java:96)
>>
>>
>>
>>-------------------------------------------------------
>>This SF.NET email is sponsored by: AMD - Your access to the experts
>>on Hammer Technology! Open Source & Linux Developers, register now
>>for the AMD Developer Symposium. Code: EX8664
>>http://www.developwithamd.com/developerlab
>>_______________________________________________
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
>>
> 
> 
> 
> -------------------------------------------------------
> This SF.NET email is sponsored by: AMD - Your access to the experts
> on Hammer Technology! Open Source & Linux Developers, register now
> for the AMD Developer Symposium. Code: EX8664
> http://www.developwithamd.com/developerlab
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 



-------------------------------------------------------
This SF.NET email is sponsored by: AMD - Your access to the experts
on Hammer Technology! Open Source & Linux Developers, register now
for the AMD Developer Symposium. Code: EX8664
http://www.developwithamd.com/developerlab
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to