To address the SOAP Fault issue first.  I can't tell which of the publish API calls you were making but whichever it was it required that you pass it an authToken.  To get an authToken you'll need to call the "get_authToken" API call and specify a userID.  The userID is the value specified in the PUBLISHER_ID column of the PUBLISHER table.  You'll need to replace the *** for the userID attribute (see the get_authToken example below where I've specified "jdoe" as the userID). 
 
If you're using the default authenticator then it doesn't matter what you specify as the password (this is the cred attribute in the get_authToken example below).  The default authenticator ignores the cred attribute value.
 
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Body>
    <get_authToken generic="2.0" xmlns="urn:uddi-org:api_v2"
      userID="jdoe"
      cred="***"/>
  </soapenv:Body>
</soapenv:Envelope>
 
As for where the log file is created.  You can change where you would like the log file created by including a path in the LOGFILE appender value in the log4j.xml file. You can find this log4j.xml file in the WEB-INF/classes directory.
 
Because a path is not specified, where the log file is created is different for each app server.  In this case Tomcat will create it in the /bin directory which is the the same directory in which Tomcat was started from.  Does that make sense?
 
Steve
 
 
 


 
On 9/15/05, Wolfgang Schreiner <[EMAIL PROTECTED]> wrote:
steve, thanks for your reply

i've made a stupid mistake:
juddi.dataSource was set to jdbc/juddiDB instead of
java:comp/env/jdbc/juddiDB

but now i'll get the following:

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
  <faultcode>soapenv:Client</faultcode>
  <faultstring>E_authTokenRequired (10120) An invalid authentication
token was passed to an API call that requires authentication. authToken:
dontcare</faultstring>
  <detail>
   <dispositionReport generic="2.0" operator="jUDDI.org"
xmlns="urn:uddi-org:api_v2">
    <result errno="10120">
     <errInfo errCode="E_authTokenRequired"
xsi:type="xsd:string">E_authTokenRequired (10120) An invalid
authentication token was passed to an API call that requires
authentication. authToken: dontcare</errInfo>
    </result>
   </dispositionReport>
  </detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

and one more question: juddi.log resides in /bin directory. is that ok?
why not /logs?
regards


Steve Viens wrote:

> Hi Wolfgang,
>
> Is anything being logged on the server?  Look for juddi.log.  Please
> provide App Server name and version as well as anything you find in
> the log.
>
> The console assumes that the registry it's calling is accessable at
> http://localhost:8080/juddi .  If it's not then you will have to change
> the following three lines in controller.jsp to point to the location
> of your jUDDI registry.
>
> final URL INQUIRY_URL = new URL(" http://localhost:8080/juddi/inquiry");
> final URL PUBLISH_URL = new URL(" http://localhost:8080/juddi/publish");
> final URL ADMIN_URL =   new URL(" http://localhost:8080/juddi/admin");
>
> Steve
>
> On 9/15/05, *Wolfgang Schreiner* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     Hi *,
>
>     I decided to use HSQLDB for jUDDI information storage and deployment
>     actually worked fine. HSQL comes with a graphical administration
>     tool,
>     which I used to insert some PUBLISHER information and happijuddi.jsp
>     returns the following output:
>
>     + Got a JNDI Context!
>     + Got a JDBC DataSource (dsname=java:comp/env/jdbc/juddiDB)
>     + Got a JDBC Connection!
>     + SELECT COUNT(*) FROM PUBLISHER = 1
>
>     which made me confident that everything works properly.
>
>     Unfortunately, the jUDDI Console returns a fault SOAP message
>     containing:
>
>     <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
>     xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/"
>     xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="
>     http://www.w3.org/2001/XMLSchema-instance">
>     <soapenv:Body>
>     <soapenv:Fault>
>       <faultcode xmlns:ns1=" http://xml.apache.org/axis/"
>     <http://xml.apache.org/axis/%22>>ns1:Server.generalException</faultcode>
>       <faultstring></faultstring>
>       <faultactor></faultactor>
>       <detail/>
>     </soapenv:Fault>
>     </soapenv:Body>
>     </soapenv:Envelope>
>
>     So, what's wrong here? This happens with every get_*, save_*,
>     find_*, ... method I call via the Console
>
>     regards,
>     Wolfgang
>
>
>


Reply via email to