You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@juddi.apache.org by Amit Deokar <de...@gmail.com> on 2009/06/25 15:12:00 UTC

Apache Derby setup with jUDDI v2.0 rc7

I did not mention in my earlier email that I also tried just using the
ready-to-go jUDDI v2.0 rc7 + Tomcat install package
(juddi-tomcat-2.0rc7.zip) in the hope that it would work with
pre-installed Apache Derby database. But, I got the same message from
happyjuddi page -
-----
jUDDI Dependencies: Resource & Properties Files

jUDDI DataSource Validation
- No JNDI Context (null)
- No 'null' DataSource Located(null)
- DB connection was not acquired. (null)
- SELECT COUNT(*) FROM PUBLISHER failed (null)
-----

On another note, I had JDK 1.6.0_13 earlier, so I tried installing JDK
1.5.0_19 and then giving it a shot - same result.

(Note - This is a follow up on my previous email. Please take a look
at that note too).

Thanks for your help in this.

Best regards,
Amit

Re: Apache Derby setup with jUDDI v2.0 rc7

Posted by Amit Deokar <de...@gmail.com>.
This is what the juddi.log shows

-----
2009-06-25 00:01:27,546 INFO
[org.apache.juddi.registry.RegistryServlet] - Loading jUDDI
configuration.
2009-06-25 00:01:27,546 INFO
[org.apache.juddi.registry.RegistryServlet] - Resources loaded from:
/WEB-INF/juddi.properties
2009-06-25 00:01:27,546 INFO
[org.apache.juddi.registry.RegistryServlet] - Initializing jUDDI
components.
2009-06-25 00:01:27,625 INFO
[org.apache.juddi.util.jdbc.ConnectionManager] - Using JNDI to aquire
a JDBC DataSource with name: java:comp/env/jdbc/juddiDB
2009-06-25 00:01:28,953 INFO
[org.apache.juddi.registry.RegistryEngine] - Initializing jUDDI
database from listed sql files
2009-06-25 00:06:56,515 INFO
[org.apache.juddi.registry.RegistryServlet] - jUDDI Stopping: Cleaning
up existing resources.
2009-06-25 00:19:12,406 INFO
[org.apache.juddi.registry.RegistryServlet] - Loading jUDDI
configuration.
2009-06-25 00:19:12,406 INFO
[org.apache.juddi.registry.RegistryServlet] - Resources loaded from:
/WEB-INF/juddi.properties
2009-06-25 00:19:12,406 INFO
[org.apache.juddi.registry.RegistryServlet] - Initializing jUDDI
components.
2009-06-25 00:19:12,515 INFO
[org.apache.juddi.util.jdbc.ConnectionManager] - Using JNDI to aquire
a JDBC DataSource with name: java:comp/env/jdbc/juddiDB
2009-06-25 00:26:12,250 INFO
[org.apache.juddi.registry.RegistryServlet] - jUDDI Stopping: Cleaning
up existing resources.
-----

What is the best way to test if jUDDI installation indeed works?

Also, what is the (1) username, (2) password to allow read/write
access to the UDDI server (in the default packaged mode with Derby and
Tomcat bundle) (3) UDDI server's "inquiryURL" and (4) "publishURL"?

Thanks for the help.

Best regards,
Amit

On Thu, Jun 25, 2009 at 10:30 AM, Kurt T Stam<ku...@gmail.com> wrote:
> Hi Amit,
>
> Do you see any errors in the juddi.log. For some reason I think the
> happyjuddi page may not be working correctly under tomcat, so if there are
> no errors in the log; can you just keep going?
>
> --Kurt
>
>
> Amit Deokar wrote:
>>
>> I did not mention in my earlier email that I also tried just using the
>> ready-to-go jUDDI v2.0 rc7 + Tomcat install package
>> (juddi-tomcat-2.0rc7.zip) in the hope that it would work with
>> pre-installed Apache Derby database. But, I got the same message from
>> happyjuddi page -
>> -----
>> jUDDI Dependencies: Resource & Properties Files
>>
>> jUDDI DataSource Validation
>> - No JNDI Context (null)
>> - No 'null' DataSource Located(null)
>> - DB connection was not acquired. (null)
>> - SELECT COUNT(*) FROM PUBLISHER failed (null)
>> -----
>>
>> On another note, I had JDK 1.6.0_13 earlier, so I tried installing JDK
>> 1.5.0_19 and then giving it a shot - same result.
>>
>> (Note - This is a follow up on my previous email. Please take a look
>> at that note too).
>>
>> Thanks for your help in this.
>>
>> Best regards,
>> Amit
>>
>>
>
>

Re: Apache Derby setup with jUDDI v2.0 rc7

Posted by Kurt T Stam <ku...@gmail.com>.
Hi Amit,

Do you see any errors in the juddi.log. For some reason I think the 
happyjuddi page may not be working correctly under tomcat, so if there 
are no errors in the log; can you just keep going?

--Kurt


Amit Deokar wrote:
> I did not mention in my earlier email that I also tried just using the
> ready-to-go jUDDI v2.0 rc7 + Tomcat install package
> (juddi-tomcat-2.0rc7.zip) in the hope that it would work with
> pre-installed Apache Derby database. But, I got the same message from
> happyjuddi page -
> -----
> jUDDI Dependencies: Resource & Properties Files
>
> jUDDI DataSource Validation
> - No JNDI Context (null)
> - No 'null' DataSource Located(null)
> - DB connection was not acquired. (null)
> - SELECT COUNT(*) FROM PUBLISHER failed (null)
> -----
>
> On another note, I had JDK 1.6.0_13 earlier, so I tried installing JDK
> 1.5.0_19 and then giving it a shot - same result.
>
> (Note - This is a follow up on my previous email. Please take a look
> at that note too).
>
> Thanks for your help in this.
>
> Best regards,
> Amit
>
>   


Re: Apache Derby setup with jUDDI v2.0 rc7

Posted by Kurt T Stam <ku...@gmail.com>.
Hi Amit,

By default the username needs to correspond with a publisher. Check out 
Chapter 2 'Authentication'

http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/docs/jUDDI-UserGuide.pdf?view=co

the way this works is the same in v2 and v3.

--Kurt

Amit Deokar wrote:
> Thanks, Kurt. Can you please answer one quick question for me?
>
> I figured the inquiryURL and publishURL is
> http://localhost:8080/juddi/inquiry
> http://localhost:8080/juddi/publish
> respectively.
>
> But, I am not sure what the username & password information is for
> getting read/write access to the jUDDI server. Is it referring to the
> juddi-users.xml file information (which I am assuming can be updated).
> Where then is the information (username/password) for authenticating
> to the derby database? Or is it one and the same?
>
> Regards,
> Amit
>   


Re: Apache Derby setup with jUDDI v2.0 rc7

Posted by Amit Deokar <de...@gmail.com>.
Thanks, Kurt. Can you please answer one quick question for me?

I figured the inquiryURL and publishURL is
http://localhost:8080/juddi/inquiry
http://localhost:8080/juddi/publish
respectively.

But, I am not sure what the username & password information is for
getting read/write access to the jUDDI server. Is it referring to the
juddi-users.xml file information (which I am assuming can be updated).
Where then is the information (username/password) for authenticating
to the derby database? Or is it one and the same?

Regards,
Amit

Re: Apache Derby setup with jUDDI v2.0 rc7

Posted by Kurt T Stam <ku...@gmail.com>.
With that change you backed out the 'fix' applied in JUDDI-221, and now 
the datasource checker in happyjuddi works again, and we'll have to see 
why JUDDI-221 broke things.

Hope you're on your way now!

--Kurt


Amit Deokar wrote:
> With the change you suggested, I got the following output -
>
> ----
> jUDDI Dependencies: Resource & Properties Files
>
> jUDDI DataSource Validation
>
> + Got a JNDI Context!
> + Got a JDBC DataSource (dsname=java:comp/env/jdbc/juddiDB)
> + Got a JDBC Connection!
> + SELECT COUNT(*) FROM PUBLISHER = 2
> ----
>
> So, it seems that the install works okay, right?
>
> But, I am curious what did that change really do? I am still puzzled.
>
> Best regards,
> Amit
>
>
>
>
> On Thu, Jun 25, 2009 at 10:35 AM, Kurt T Stam<ku...@gmail.com> wrote:
>   
>> Amit,
>>
>> In the happyjuddi.jsp try replacing
>>
>> dsname = Util.escapeXml(request.getParameter("dsname"));
>>
>> with
>>
>> dsname = request.getParameter("dsname");
>>
>> --Kurt
>>
>>
>> Amit Deokar wrote:
>>     
>>> I did not mention in my earlier email that I also tried just using the
>>> ready-to-go jUDDI v2.0 rc7 + Tomcat install package
>>> (juddi-tomcat-2.0rc7.zip) in the hope that it would work with
>>> pre-installed Apache Derby database. But, I got the same message from
>>> happyjuddi page -
>>> -----
>>> jUDDI Dependencies: Resource & Properties Files
>>>
>>> jUDDI DataSource Validation
>>> - No JNDI Context (null)
>>> - No 'null' DataSource Located(null)
>>> - DB connection was not acquired. (null)
>>> - SELECT COUNT(*) FROM PUBLISHER failed (null)
>>> -----
>>>
>>> On another note, I had JDK 1.6.0_13 earlier, so I tried installing JDK
>>> 1.5.0_19 and then giving it a shot - same result.
>>>
>>> (Note - This is a follow up on my previous email. Please take a look
>>> at that note too).
>>>
>>> Thanks for your help in this.
>>>
>>> Best regards,
>>> Amit
>>>
>>>
>>>       
>>     


Re: Apache Derby setup with jUDDI v2.0 rc7

Posted by Amit Deokar <de...@gmail.com>.
With the change you suggested, I got the following output -

----
jUDDI Dependencies: Resource & Properties Files

jUDDI DataSource Validation

+ Got a JNDI Context!
+ Got a JDBC DataSource (dsname=java:comp/env/jdbc/juddiDB)
+ Got a JDBC Connection!
+ SELECT COUNT(*) FROM PUBLISHER = 2
----

So, it seems that the install works okay, right?

But, I am curious what did that change really do? I am still puzzled.

Best regards,
Amit




On Thu, Jun 25, 2009 at 10:35 AM, Kurt T Stam<ku...@gmail.com> wrote:
> Amit,
>
> In the happyjuddi.jsp try replacing
>
> dsname = Util.escapeXml(request.getParameter("dsname"));
>
> with
>
> dsname = request.getParameter("dsname");
>
> --Kurt
>
>
> Amit Deokar wrote:
>>
>> I did not mention in my earlier email that I also tried just using the
>> ready-to-go jUDDI v2.0 rc7 + Tomcat install package
>> (juddi-tomcat-2.0rc7.zip) in the hope that it would work with
>> pre-installed Apache Derby database. But, I got the same message from
>> happyjuddi page -
>> -----
>> jUDDI Dependencies: Resource & Properties Files
>>
>> jUDDI DataSource Validation
>> - No JNDI Context (null)
>> - No 'null' DataSource Located(null)
>> - DB connection was not acquired. (null)
>> - SELECT COUNT(*) FROM PUBLISHER failed (null)
>> -----
>>
>> On another note, I had JDK 1.6.0_13 earlier, so I tried installing JDK
>> 1.5.0_19 and then giving it a shot - same result.
>>
>> (Note - This is a follow up on my previous email. Please take a look
>> at that note too).
>>
>> Thanks for your help in this.
>>
>> Best regards,
>> Amit
>>
>>
>
>

Re: Apache Derby setup with jUDDI v2.0 rc7

Posted by Kurt T Stam <ku...@gmail.com>.
Amit,

In the happyjuddi.jsp try replacing

dsname = Util.escapeXml(request.getParameter("dsname"));

with

dsname = request.getParameter("dsname");

--Kurt


Amit Deokar wrote:
> I did not mention in my earlier email that I also tried just using the
> ready-to-go jUDDI v2.0 rc7 + Tomcat install package
> (juddi-tomcat-2.0rc7.zip) in the hope that it would work with
> pre-installed Apache Derby database. But, I got the same message from
> happyjuddi page -
> -----
> jUDDI Dependencies: Resource & Properties Files
>
> jUDDI DataSource Validation
> - No JNDI Context (null)
> - No 'null' DataSource Located(null)
> - DB connection was not acquired. (null)
> - SELECT COUNT(*) FROM PUBLISHER failed (null)
> -----
>
> On another note, I had JDK 1.6.0_13 earlier, so I tried installing JDK
> 1.5.0_19 and then giving it a shot - same result.
>
> (Note - This is a follow up on my previous email. Please take a look
> at that note too).
>
> Thanks for your help in this.
>
> Best regards,
> Amit
>
>