新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   XML论坛     >>W3CHINA.ORG讨论区<<     计算机科学论坛     SOAChina论坛     Blog     开放翻译计划     新浪微博  
 
  • 首页
  • 登录
  • 注册
  • 软件下载
  • 资料下载
  • 核心成员
  • 帮助
  •   Add to Google

    >> Web服务(Web Services,WS), 语义Web服务(Semantic Web Services, SWS)讨论区: WSDL, SOAP, UDDI, DAML-S, OWL-S, SWSF, SWSL, WSMO, WSML,BPEL, BPEL4WS, WSFL, WS-*,REST, PSL, Pi-calculus(Pi演算), Petri-net,WSRF,
    [返回] W3CHINA.ORG讨论区 - 语义网·描述逻辑·本体·RDF·OWLW3CHINA.ORG讨论区 - Web新技术讨论『 Web Services & Semantic Web Services 』 → uddi4j连接juddi成功测试 与大家分享 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 64666 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: uddi4j连接juddi成功测试 与大家分享 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     xiaopengyou 帅哥哟,离线,有人找我吗?
      
      
      等级:大一(猛啃高等数学)
      文章:11
      积分:104
      门派:W3CHINA.ORG
      注册:2007/10/8

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给xiaopengyou发送一个短消息 把xiaopengyou加入好友 查看xiaopengyou的个人资料 搜索xiaopengyou在『 Web Services & Semantic Web Services 』的所有贴子 引用回复这个贴子 回复这个贴子 查看xiaopengyou的博客21
    发贴心情 

    终于成功了  哈哈
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/10/19 22:06:00
     
     linlin2 美女呀,离线,快来找我吧!
      
      
      等级:大一新生
      文章:0
      积分:60
      门派:XML.ORG.CN
      注册:2007/8/25

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给linlin2发送一个短消息 把linlin2加入好友 查看linlin2的个人资料 搜索linlin2在『 Web Services & Semantic Web Services 』的所有贴子 引用回复这个贴子 回复这个贴子 查看linlin2的博客22
    发贴心情 
    楼上的可以联系一下你吗?我的一直没成功
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/10/26 11:20:00
     
     luyu 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:3
      积分:74
      门派:XML.ORG.CN
      注册:2007/11/16

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给luyu发送一个短消息 把luyu加入好友 查看luyu的个人资料 搜索luyu在『 Web Services & Semantic Web Services 』的所有贴子 引用回复这个贴子 回复这个贴子 查看luyu的博客23
    发贴心情 
    你好,我也是你所说的做的,可是插入user的那步我不太明白,等说的仔细些吗!
    *********** Running SaveBusinessExample ***********

    Get authtoken
    Returned authToken:authToken:E77B5BD0-9453-11DC-9BD0-D555046E459B

    Save 'Sample Business'
    java.lang.NullPointerException
     at org.uddi4j.UDDIException.isValidElement(UDDIException.java:111)
     at org.uddi4j.UDDIElement.<init>(UDDIElement.java:38)
     at org.uddi4j.response.BusinessDetail.<init>(BusinessDetail.java:85)
     at org.uddi4j.client.UDDIProxy.save_business(UDDIProxy.java:1700)
     at SaveBusinessExample.run(SaveBusinessExample.java:89)
     at SaveBusinessExample.main(SaveBusinessExample.java:50)
    这是我的运行结果!!为什么出现了错误啊?
    # Property file used to set parameters for UDDI4J samples.

    # -----------------------------------------------------------------------
    # inquiryURL: The URL for the inquiry API of the target UDDI registry
    # publishURL: URL for the publish API of the target UDDI registry
    # A list of UDDI URLs is on the UDDI4J website http://www.uddi4j.org/
    #
    # A typical entry would be of the form
    # inquiryURL=http://company.com/uddi_node
    # publishURL=https://company.com/uddi_publish_node
    # -----------------------------------------------------------------------
    # IBM UDDI test site
    inquiryURL =    http://localhost:8080/juddi/inquiry
    publishURL =  http://localhost:8080/juddi/publish

    # -----------------------------------------------------------------------
    # Userid to use when running the publish samples. Userid/passwords should
    # not generally be stored in clear text
    # -----------------------------------------------------------------------
    userid = juddi
    password =juddi

    # -----------------------------------------------------------------------
    # Transport classname. Typically defined on commandline as
    # -Dorg.uddi4j.TransportClassName=xxx.
    # -----------------------------------------------------------------------
    TransportClassName=org.uddi4j.transport.ApacheSOAPTransport
    # TransportClassName=org.uddi4j.transport.ApacheAxisTransport
    # TransportClassName=org.uddi4j.transport.HPSOAPTransport

    # -----------------------------------------------------------------------
    # Debug log enabled or not. Typically defined on command line as
    # -Dorg.uddi4j.logEnabled=true
    # -----------------------------------------------------------------------
    logEnabled=false
    #logEnabled=true

    # -----------------------------------------------------------------------
    # Values used to determine the implementation of JSSE to use. Provided
    # for convenience, this is typically configured within the jdk
    # in JAVA_HOME\jre\lib\security
    # -----------------------------------------------------------------------
    # Sun JSSE implementation
    handlerPackageName=com.sun.net.ssl.internal.www.protocol
    securityClassName=com.sun.net.ssl.internal.ssl.Provider

    # IBM JSSE implementation
    # handlerPackageName=com.ibm.net.ssl.internal.www.protocol
    # securityClassName=com.ibm.jsse.JSSEProvider

    # -----------------------------------------------------------------------
    # UDDI names to use within samples. Samples may or maynot use these values,
    # Check the source for the sample
    # -----------------------------------------------------------------------
    businessName=Sample Business
    serviceName=Sample Service
    tmodelName=Sample TModel
    sampleEntityName=S
    assertionRelationship=peer-peer

    # -----------------------------------------------------------------------
    # Additional values can be added as needed as a convenient repository
    # for data relevant to the UDDI4J samples
    # -----------------------------------------------------------------------
    这是我的samples.prop
    各位谁明白是怎么回事?(tomcat5.5.17+jdk1.5.04)

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/11/16 22:59:00
     
     luyu 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:3
      积分:74
      门派:XML.ORG.CN
      注册:2007/11/16

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给luyu发送一个短消息 把luyu加入好友 查看luyu的个人资料 搜索luyu在『 Web Services & Semantic Web Services 』的所有贴子 引用回复这个贴子 回复这个贴子 查看luyu的博客24
    发贴心情 
    我原来也有这个问题,我想你应该看一下几个需要注意的问题:
    1.tomcat 的版本最好是5.0的,我原来用5.5做的就没有成功
    2.还有就是数据库中那个用户一定要插入,否则就会出现你这个问题
    3. 修改tomcat/conf/server.xml在</Host>后添加如下:
    <DefaultContext reloadable="true" crossContext="true">
    <Resource name="jdbc/juddiDB" scope="Shareable" type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/juddiDB">
    <parameter>
    <name>username</name>
    <value>root</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>123456</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>
    jdbc:mysql://localhost/juddi
    </value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>com.mysql.jdbc.Driver</value>
    </parameter>
    </ResourceParams>
    </DefaultContext>

    其中:username和password是mysql数据库的用户名和密码,url为数据库的url,driverClassName是mysql的JDBC驱动程序,如果所用到的数据库版本或是驱动程序版本不同这里也要变化。
    我想问题可能出现在这些方面上

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/12/2 21:11:00
     
     westcrazy 帅哥哟,离线,有人找我吗?
      
      
      等级:大一(猛啃高等数学)
      文章:24
      积分:144
      门派:XML.ORG.CN
      注册:2007/5/8

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给westcrazy发送一个短消息 把westcrazy加入好友 查看westcrazy的个人资料 搜索westcrazy在『 Web Services & Semantic Web Services 』的所有贴子 引用回复这个贴子 回复这个贴子 查看westcrazy的博客25
    发贴心情 
    我也去试试,希望能成功。
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/12/11 15:35:00
     
     pangzikui 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:1
      积分:56
      门派:XML.ORG.CN
      注册:2009/2/28

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给pangzikui发送一个短消息 把pangzikui加入好友 查看pangzikui的个人资料 搜索pangzikui在『 Web Services & Semantic Web Services 』的所有贴子 引用回复这个贴子 回复这个贴子 查看pangzikui的博客26
    发贴心情 
    大家好,我的运行后的结果是这样,不知道什么原因,折腾一下午了,请帮帮忙,谢谢!


    *********** Running SaveBusinessExample ***********

    Get authtoken
    org.uddi4j.transport.TransportException: Unsupported response content type &quot;text/html; charset=utf-8&quot;, must be: &quot;text/xml&quot;. Response was:
    &lt;html&gt;&lt;head&gt;&lt;title&gt;Apache Tomcat/5.5.17 - Error
    at org.uddi4j.transport.ApacheSOAPTransport.send(ApacheSOAPTransport.java:88)
     at org.uddi4j.transport.TransportBase.send(TransportBase.java:57)
     at org.uddi4j.client.UDDIProxy.send(UDDIProxy.java:1942)
     at org.uddi4j.client.UDDIProxy.get_authToken(UDDIProxy.java:1626)
     at com.uddi4j.SaveBusinessExample.run(SaveBusinessExample.java:73)
     at com.uddi4j.SaveBusinessExample.main(SaveBusinessExample.java:50):

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2009/3/14 17:35:00
     
     seulout 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:7
      积分:83
      门派:XML.ORG.CN
      注册:2009/3/24

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给seulout发送一个短消息 把seulout加入好友 查看seulout的个人资料 搜索seulout在『 Web Services & Semantic Web Services 』的所有贴子 引用回复这个贴子 回复这个贴子 查看seulout的博客27
    发贴心情 
    总是不成功,哪个高手帮我看一下问题啊


    *********** Running PublisherAssertionExample ***********

    Get authtoken
    org.uddi4j.transport.TransportException: E:\Eclipse SDK 3.0\workspace\uddi4jdemo\<?xml version="1.0" encoding="utf-8" ?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http:\schemas.xmlsoap.org\soap\envelope\"><SOAP-ENV:Header\><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server<\faultcode><faultstring>Fault string, and possibly fault code, not set<\faultstring><\SOAP-ENV:Fault><\SOAP-ENV:Body><\SOAP-ENV:Envelope> (文件名、目录名或卷标语法不正确。)
     at org.uddi4j.transport.ApacheSOAPTransport.send(ApacheSOAPTransport.java:88)
     at org.uddi4j.transport.TransportBase.send(TransportBase.java:57)
     at org.uddi4j.client.UDDIProxy.send(UDDIProxy.java:1942)
     at org.uddi4j.client.UDDIProxy.get_authToken(UDDIProxy.java:1626)
     at PublisherAssertionExample.run(PublisherAssertionExample.java:79)
     at PublisherAssertionExample.main(PublisherAssertionExample.java:57)

    Nested exception:
    [SOAPException: faultCode=SOAP-ENV:Client; msg=E:\Eclipse SDK 3.0\workspace\uddi4jdemo\<?xml version="1.0" encoding="utf-8" ?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http:\schemas.xmlsoap.org\soap\envelope\"><SOAP-ENV:Header\><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server<\faultcode><faultstring>Fault string, and possibly fault code, not set<\faultstring><\SOAP-ENV:Fault><\SOAP-ENV:Body><\SOAP-ENV:Envelope> (文件名、目录名或卷标语法不正确。); targetException=java.io.FileNotFoundException: E:\Eclipse SDK 3.0\workspace\uddi4jdemo\<?xml version="1.0" encoding="utf-8" ?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http:\schemas.xmlsoap.org\soap\envelope\"><SOAP-ENV:Header\><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server<\faultcode><faultstring>Fault string, and possibly fault code, not set<\faultstring><\SOAP-ENV:Fault><\SOAP-ENV:Body><\SOAP-ENV:Envelope> (文件名、目录名或卷标语法不正确。)]
     at org.apache.soap.messaging.Message.receiveEnvelope(Message.java:144)
     at org.uddi4j.transport.ApacheSOAPTransport.send(ApacheSOAPTransport.java:79)
     at org.uddi4j.transport.TransportBase.send(TransportBase.java:57)
     at org.uddi4j.client.UDDIProxy.send(UDDIProxy.java:1942)
     at org.uddi4j.client.UDDIProxy.get_authToken(UDDIProxy.java:1626)
     at PublisherAssertionExample.run(PublisherAssertionExample.java:79)
     at PublisherAssertionExample.main(PublisherAssertionExample.java:57)
    Caused by: java.io.FileNotFoundException: E:\Eclipse SDK 3.0\workspace\uddi4jdemo\<?xml version="1.0" encoding="utf-8" ?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http:\schemas.xmlsoap.org\soap\envelope\"><SOAP-ENV:Header\><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server<\faultcode><faultstring>Fault string, and possibly fault code, not set<\faultstring><\SOAP-ENV:Fault><\SOAP-ENV:Body><\SOAP-ENV:Envelope> (文件名、目录名或卷标语法不正确。)
     at java.io.FileInputStream.open(Native Method)
     at java.io.FileInputStream.<init>(FileInputStream.java:106)
     at java.io.FileInputStream.<init>(FileInputStream.java:66)
     at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
     at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
     at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:653)
     at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:186)
     at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
     at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
     at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
     at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225)
     at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
     at org.apache.soap.util.xml.XMLParserUtils.parse(XMLParserUtils.java:323)
     at org.apache.soap.util.xml.XMLParserUtils.parse(XMLParserUtils.java:247)
     at org.apache.soap.messaging.Message.receiveEnvelope(Message.java:127)
     at org.uddi4j.transport.ApacheSOAPTransport.send(ApacheSOAPTransport.java:79)
     at org.uddi4j.transport.TransportBase.send(TransportBase.java:57)
     at org.uddi4j.client.UDDIProxy.send(UDDIProxy.java:1942)
     at org.uddi4j.client.UDDIProxy.get_authToken(UDDIProxy.java:1626)
     at PublisherAssertionExample.run(PublisherAssertionExample.java:79)
     at PublisherAssertionExample.main(PublisherAssertionExample.java:57)

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2009/4/29 14:19:00
     
     tiancen2001 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:1
      积分:54
      门派:XML.ORG.CN
      注册:2009/6/6

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给tiancen2001发送一个短消息 把tiancen2001加入好友 查看tiancen2001的个人资料 搜索tiancen2001在『 Web Services & Semantic Web Services 』的所有贴子 引用回复这个贴子 回复这个贴子 查看tiancen2001的博客28
    发贴心情 有代码么
    有代码么,能否看看代码
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2009/6/6 18:02:00
     
     tmw 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:4
      积分:68
      门派:XML.ORG.CN
      注册:2009/7/22

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给tmw发送一个短消息 把tmw加入好友 查看tmw的个人资料 搜索tmw在『 Web Services & Semantic Web Services 』的所有贴子 引用回复这个贴子 回复这个贴子 查看tmw的博客29
    发贴心情 
    我访问http://localhost:8080/juddi/happyjuddi.jsp
    已经成功了
    但是用uddi4j就是连不上
    提示错误为:Error opening socket: Connection refused: connect
    请问是怎么回事啊
    搞了好多天了
    我是win7系统+tomcat5.0+mysql5+juddi0.94rc+uddi4j
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2010/3/19 22:07:00
     
     GoogleAdSense
      
      
      等级:大一新生
      文章:1
      积分:50
      门派:无门无派
      院校:未填写
      注册:2007-01-01
    给Google AdSense发送一个短消息 把Google AdSense加入好友 查看Google AdSense的个人资料 搜索Google AdSense在『 Web Services & Semantic Web Services 』的所有贴子 访问Google AdSense的主页 引用回复这个贴子 回复这个贴子 查看Google AdSense的博客广告
    2024/4/23 22:04:46

    本主题贴数29,分页: [1] [2] [3]

    管理选项修改tag | 锁定 | 解锁 | 提升 | 删除 | 移动 | 固顶 | 总固顶 | 奖励 | 惩罚 | 发布公告
    W3C Contributing Supporter! W 3 C h i n a ( since 2003 ) 旗 下 站 点
    苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
    195.313ms