juddi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anou Manavalan" <a...@trysybase.com>
Subject RE: [juddi-Users] juddi and orion
Date Thu, 19 Jun 2003 14:39:03 GMT
1. here i['m calling the initialContext() with some
values put in the hashtable. is it necessary to do it.
cant i do it with these values specified in some file
like jndi.properties.

---  The initialContext takes the properties, which extends the hashtable,
that is why it was working when you put a hashtable.  Usually what you do is
read the values from a property file to java.util.Properties and pass that
to the context.


javax.naming.NamingException: Error reading
application-client descriptor: No location specified
for resource-ref java:comp/env/jdbc/juddi/ [Root
exception is java.lang.InstantiationException: No
location specified for resource-ref
java:comp/env/jdbc/juddi/]
        at
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext
(.:184)

-----   not sure how orion works, but have you tried adding the resource ref
location along with the resource-ref-name  ?


4. prior to the above error ... i'm promted for
uesrname/password to connect to rmi://localhost:1102
even though i havent specified any security related
parameters.

---  you should be able to give the username(principal), password
(credentials) in the hashtable ( properties )
		Context.INITIAL_CONTEXT_FACTORY
					// URL for the Server's IIOP port
		Context.PROVIDER_URL
		Context.SECURITY_PRINCIPAL
		Context.SECURITY_CREDENTIALS


6. when i dont pass the "someTable" hashtable to the
constructor ... ( just call initialContext() ) ...i
get the following error

javax.naming.NotContextException: comp is not a
subcontext

----  The properties (hashtable values) that you set in the context tells
where to look for the env variables. Your server has implemented the jndi
initial factory class and so you need to provide the context with the
implemented context factory and the server ( provider url ) where the
context will look for the variables.

hope this helps,
-Anou


-----Original Message-----
From: juddi-users-admin@lists.sourceforge.net
[mailto:juddi-users-admin@lists.sourceforge.net]On Behalf Of vaidya
Sent: Thursday, June 19, 2003 6:05 AM
To: juddi-users@lists.sourceforge.net
Subject: [juddi-Users] juddi and orion


hi

im trying to configure juddi on orion and have a few
problems.
i'm deploying juddi as a web app in orion.
************************************************************
{ the whole configuration works smoothly on tomcat }
************************************************************
in the orion/config/data-sources.xml i have the
following

<data-source

class="org.apache.commons.dbcp.BasicDataSource"
                name="jdbc/juddi"
                location="jdbc/juddi"

connection-driver="org.postgresql.Driver"
                username="??"
                password="??"

url="jdbc:postgresql://127.0.0.1:5432/abcd" >
        <!--
        <property name="factory"
value="org.apache.commons.dbcp.BasicDataSourceFactory"
/>
        -->
        </data-source>

next, i have a servlet(xyz.java) which needs to be
loaded at the startup. i have configured the
juddi/WEB-INF/web.xml accordingly.

in the xyz.java i have the following

Hashtable someTable = new Hashtable();


someTable.put(InitialContext.PROVIDER_URL,
"rmi://127.0.0.1:1102");

someTable.put("java.naming.factory","com.evermind.server.rmi.RMIInitialConte
xtFactory");

someTable.put("java.naming.factory.initial","com.evermind.server.Application
ClientInitialContextFactory");

                System.out.println("--------Enter
Servlet-------------" );
                InitialContext initCtx = new
InitialContext(someTable);

                System.out.println("--------
constructor called ----");
                Hashtable tempTable =
initCtx.getEnvironment();
                System.out.println("ENV is " +
tempTable.toString());

                for(NamingEnumeration e =
initCtx.listBindings("java:comp/env"); e.hasMore();)
         {
          // i work on the bindings;
          }


i have the following problems

1. here i['m calling the initialContext() with some
values put in the hashtable. is it necessary to do it.
cant i do it with these values specified in some file
like jndi.properties.

2. the above does work if the
java.naming.factory.initial value is put in the
hastable and the constructor called. then the rest of
the values are read from jndi.properties present in
juddi/WEB-INF/lib directory. why is that so.

3. even with this going on . i get the following error
when i start the server

javax.naming.NamingException: Error reading
application-client descriptor: No location specified
for resource-ref java:comp/env/jdbc/juddi/ [Root
exception is java.lang.InstantiationException: No
location specified for resource-ref
java:comp/env/jdbc/juddi/]
        at
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext
(.:184)
.......................


how do i solve this problem

4. prior to the above error ... i'm promted for
uesrname/password to connect to rmi://localhost:1102
even though i havent specified any security related
parameters.

5. are the java.naming.factory and
java.naming.factory.initial values specified correct(
i got them from orion docs)

6. when i dont pass the "someTable" hashtable to the
constructor ... ( just call initialContext() ) ...i
get the following error

javax.naming.NotContextException: comp is not a
subcontext

the "ENV" im printing is empty.

why isnt it accessing the env-entry s and printing it
.
(i'm sure that we access it by java:com[/env )

please help me out of this crisis... i have tried
using many other combinations also ... so far
uncessfull.....

is there any tutorial available for configuring juddi
on orion

thanx a ton



__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
juddi-users mailing list
juddi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/juddi-users



Mime
View raw message