Apache

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Problem setting up jUDDI, MySQL, Tomcat

    5 answers - 4155 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hey there Isaac,
    Been there done that before. Here is a post I sent to someone else a month
    or so ago who had similar issues see if this helps. Let me know.
    Mark
    Message
    From: Mark Streit [mailto:mstreit (AT) bellsouth (DOT) net]
    Sent: Wednesday, March 15, 2006 8:32 PM
    To: 'juddi-user (AT) ws (DOT) apache.org'
    Subject: RE: Deployed jUDDI with Tomcat
    Hazem,
    You need to check that the JDBC datasource name specified in the Tomcat
    setup matches that specified in the juddi/WEB-INF/juddi.properties file
    (this is all under the webapps folder of Tomcat). I had this exact same
    issue.
    First
    In juddi/WEB-INF/juddi.properties file you need:
    # jUDDI DataSource to use
    Next
    In the file /WEB-INF/web.xml of the juddi context, there should be a
    Resource configuration entry:
    <resource-ref>
    <description>jUDDI DataSource</description>
    <res-ref-name>jdbc/juddiDB</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref
    Finally
    This all then has to match the server.xml file under the Tomcat installation
    folder in /conf.
    <Context path="/juddi" docBase="juddi"
    debug="5" reloadable="true"
    crossContext="true">
    <Logger
    className=""
    prefix="localhost_juddiDB_log" suffix=".txt"
    timestamp="true"/>
    <!-- the Resource element will
    probably work better for
    you on Tomcat 5+ if
    you simply use a Resource only tag
    with xml attributes
    as opposed to the nested ResourceParams and
    parameter elements
    <Resource name="jdbc/juddiDB" auth="Container"
    type="javax.sql.DataSource"
    maxActive="100" maxIdle="30" maxWait="10000"
    username="juddi" password="juddi"
    driverClassName="com.mysql.jdbc.Driver"
    url=""/
    <!--
    <Resource name="jdbc/juddi" auth="Container"
    type="javax.sql.DataSource"
    maxActive="100" maxIdle="30" maxWait="10000"
    username="juddi" password="juddi" driverClassName="com.mysql.jdbc.Driver"
    url=""/
    </Context>
    Note in all of these 3 locations the use of the String "jdbc/juddiDB". I
    believe the issue was that these are not consistent in the download package
    and instructions.
    Hope this helps
    Mark
    Message
    From: iamundson [mailto:iamundson (AT) gmail (DOT) com]
    Sent: Wednesday, May 03, 2006 3:36 PM
    To: juddi-user (AT) ws (DOT) apache.org
    Subject: Problem setting up jUDDI, MySQL, Tomcat
    Hi all,
    Web services, data bases, and servers are not my area, but I'm trying to set
    up jUDDI as part of an exploratory research project, I'm running into
    problems, and I'm starting to pull my hair out.
    Here's what I'm using:
    jUDDI 0.9rc4
    axis 1.2.1
    S: Windows XP
    Server: Tomcat 5.5
    Database: MySQL Server 5.0
    Here's my problem: I tried setting everything up to the best of my ability.
    When I validate on the jUDDI happiness page I get the following:
    jUDDI DataSource Validation
    + Got a JNDI Context!
    - No 'java:comp/env/jdbc/juddiDB' DataSource Located(Could not load resource
    factory class)
    - DB connection was not aquired. (null)
    - SELECT ****(*) FRM PUBLISHER failed (null)
    I removed the <Resourceelement from server.xml and got this:
    jUDDI DataSource Validation
    + Got a JNDI Context!
    + Got a JDBC DataSource ()
    - DB connection was not aquired. (Cannot create JDBC driver of class '' for
    connect URL 'null')
    - SELECT ****(*) FRM PUBLISHER failed (null)
    I noticed others have had this error, but all suggestions didn't help me.
    I've modified so many files at this point, I'm not even sure what is right
    and what is wrong.
    From the command line I was able to execute the SELECT statement in MySQL,
    so I know the database is up and running.
    Can anyone help me?
    Thanks in advance,
    Isaac
  • No.1 | | 301 bytes | |

    Thanks Mark,

    I had actually seen your post before, but missed one thing. All I needed to
    do to get it working was remove :

    <parameter>
    <name>factory</name>
    <value></value>
    </parameter>

    works fine now.

    Thanks,

    Isaac
  • No.2 | | 603 bytes | |

    Hi, List,

    I recently installed juddi-0.9rc4 on Tomcat 5.5 and MySQL-Server.

    The problem I've encountered is that you don't need credentials to
    login, regardless of the authenticator (other than the
    SimpleAuthenticator) specified in the juddi.properties file.

    Submitting a registered publisher's name suffices to get an authToken,
    even after having specified the MyCoolAuthenticator (with the hardcoded
    password "steve") for testing purposes.

    I'm pretty clueless about that matter - any help is appreciated ;-)

    Ciao,
    Jason.
  • No.3 | | 232 bytes | |

    Hi,
    there's another thing bothering me: is there a way to set per account
    limitations for a publisher (i.e. a publisher shall have: 1
    businessEntity, 4 businessServices and so on)?
    Ciao,
    Jason.
  • No.4 | | 791 bytes | |

    Jason, are you still having this issue?

    5/8/06, Jason Milad Daivandy <JasonDD (AT) gmx (DOT) dewrote:

    Hi, List,

    I recently installed juddi-0.9rc4 on Tomcat 5.5 and MySQL-Server.

    The problem I've encountered is that you don't need credentials to
    login, regardless of the authenticator (other than the
    SimpleAuthenticator) specified in the juddi.properties file.

    Submitting a registered publisher's name suffices to get an authToken,
    even after having specified the MyCoolAuthenticator (with the hardcoded
    password "steve") for testing purposes.

    I'm pretty clueless about that matter - any help is appreciated ;-)
    --
    Ciao,
    Jason.
    >
    >
    >
    >
    >
  • No.5 | | 1096 bytes | |

    Hello, Steve,
    thanks for answering me.

    I've resolved that authentication issue.
    It had nothing to do with juddi itself, but way my own fault: the whole
    time I was editing the wrong "juddi.properties" file.

    Ciao,
    Jason.

    Jason, are you still having this issue?

    5/8/06, *Jason Milad Daivandy* <JasonDD (AT) gmx (DOT) de
    <mailto:JasonDD (AT) gmx (DOT) de>wrote:

    Hi, List,

    I recently installed juddi-0.9rc4 on Tomcat 5.5 and MySQL-Server.

    The problem I've encountered is that you don't need credentials to
    login, regardless of the authenticator (other than the
    SimpleAuthenticator) specified in the juddi.properties file.

    Submitting a registered publisher's name suffices to get an authToken,
    even after having specified the MyCoolAuthenticator (with the
    hardcoded
    password "steve") for testing purposes.

    I'm pretty clueless about that matter - any help is appreciated ;-)
    --
    Ciao,
    Jason.
    >
    >
    >
    >
    >

Re: Problem setting up jUDDI, MySQL, Tomcat


max 4000 letters.
Your nickname that display:
In order to stop the spam: 7 + 6 =
QUESTION ON "Apache"

EMSDN.COM