以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 Web Services & Semantic Web Services 』  (http://bbs.xml.org.cn/list.asp?boardid=10)
----  aixs.juudi配置问题,求解???  (http://bbs.xml.org.cn/dispbbs.asp?boardid=10&rootid=&id=52756)


--  作者:jia95812
--  发布时间:9/17/2007 5:09:00 PM

--  aixs.juudi配置问题,求解???
1:
axis配置后,显示结果为:
Needed Components
Found SAAJ API ( javax.xml.soap.SOAPMessage ) at D:\IRS-platform\Tomcat 6.0\webapps\axis\WEB-INF\lib\saaj.jar

Found JAX-RPC API ( javax.xml.rpc.Service ) at D:\IRS-platform\Tomcat 6.0\webapps\axis\WEB-INF\lib\jaxrpc.jar

Found Apache-Axis ( org.apache.axis.transport.http.AxisServlet ) at D:\IRS-platform\Tomcat 6.0\webapps\axis\WEB-INF\lib\axis.jar

Found Jakarta-Commons Discovery ( org.apache.commons.discovery.Resource ) at D:\IRS-platform\Tomcat 6.0\webapps\axis\WEB-INF\lib\commons-discovery-0.2.jar

Found Jakarta-Commons Logging ( org.apache.commons.logging.Log ) at D:\IRS-platform\Tomcat 6.0\webapps\axis\WEB-INF\lib\commons-logging-1.0.4.jar

Found Log4j ( org.apache.log4j.Layout ) at D:\IRS-platform\Tomcat 6.0\webapps\axis\WEB-INF\lib\log4j-1.2.8.jar

Found IBM's WSDL4Java ( com.ibm.wsdl.factory.WSDLFactoryImpl ) at D:\IRS-platform\Tomcat 6.0\webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar

Found JAXP implementation ( javax.xml.parsers.SAXParserFactory ) at an unknown location

Found Activation API ( javax.activation.DataHandler ) at D:\IRS-platform\Tomcat 6.0\webapps\axis\WEB-INF\lib\activation.jar

Optional Components
Found Mail API ( javax.mail.internet.MimeMessage ) at D:\IRS-platform\Tomcat 6.0\webapps\axis\WEB-INF\lib\mail.jar

Found XML Security API ( org.apache.xml.security.Init ) at D:\IRS-platform\Tomcat 6.0\webapps\axis\WEB-INF\lib\xmlsec-1.4.1.jar

Found Java Secure Socket Extension ( javax.net.ssl.SSLSocketFactory ) at an unknown location

The core axis libraries are present.The optional components are present.
Note: Even if everything this page probes for is present, there is no guarantee your web service will work, because there are many configuration options that we do not check for. These tests are necessary but not sufficient
--------------------------------------------------------------------------------

Examining Application Server
Servlet version 2.5
XML Parser com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
XML ParserLocation an unknown location

为什么会有
Found JAXP implementation ( javax.xml.parsers.SAXParserFactory ) at an unknown location
Found Java Secure Socket Extension ( javax.net.ssl.SSLSocketFactory ) at an unknown location

我已经把jsse.jar,xercesImpl.jar到方和activator.jar,mail.jar相同的地方,怎么就它们找不到呢?
2:
juddi配置后:
Got a JNDI Context!
+ Got a JDBC DataSource (dsname=java:comp/env/jdbc/juddiDB)
- DB connection was not aquired. (Cannot create JDBC driver of class '' for connect URL 'null')
- SELECT COUNT(*) FROM PUBLISHER failed (null)
我已经把mysql-connector-java-3.1.11-bin.jar放到juddi/WEB-INf\lib下,且server.xml也已增加了
      <Context path="/juddi" docBase="juddi" debug="5" reloadable="true"

  crossContext="true">

  <Logger className="org.apache.catalina.logger.FileLogger"

               prefix="localhost_juddiDB_log" suffix=".txt"

               timestamp="true"/>

  <Resource name="jdbc/juddiDB"

                 auth="Container"

                 type="javax.sql.DataSource"/>

  <ResourceParams name="jdbc/juddiDB">

    <parameter>

      <name>factory</name>

      <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>

    </parameter>

    <!-- Maximum number of dB connections in pool. Make sure you

         configure your mysqld max_connections large enough to handle

         all of your db connections. Set to 0 for no limit. -->

    <parameter><name>maxActive</name><value>100</value></parameter>

    <!-- Maximum number of idle dB connections to retain in pool.

         Set to 0 for no limit. -->

    <parameter><name>maxIdle</name><value>30</value></parameter>

    <parameter><name>maxWait</name><value>10000</value></parameter>

    <!-- MySQL dB username and password for dB connections -->

    <parameter><name>username</name><value>juddi</value></parameter>

    <parameter><name>password</name><value>juddi</value></parameter>

    <!-- Class name for mysql JDBC driver -->

    <parameter>

      <name>driverClassName</name>

      <value>com.mysql.jdbc.Driver</value>

    </parameter>

    <!-- The JDBC connection url for connecting to your MySQL dB.

         The autoReconnect=true argument to the url makes sure that the

         mm.mysql JDBC Driver will automatically reconnect if mysqld closed the

         connection.  mysqld by default closes idle connections after 8 hours.

    -->

    <parameter>

      <name>url</name>

      <value>jdbc:mysql://localhost:3306/juddi?autoReconnect=true</value>

    </parameter>

    <parameter>

           <name>validationQuery</name>

           <value>select count(*) from PUBLISHER</value>

    </parameter>

  </ResourceParams>

</Context>
mysql也已经使用juddi用户建立了juddi库和表等,并在publisher表中插入了一行数据
为什么还不行呢?
有的说要把mysql-connector-java-3.1.11-bin.jar方到common\lib中,可我用的tomcat6.0版本,并没有那个文件夹,难道只能用tomcat 5吗???
3:
再问个问题,为什么要把axis中的*.jar加入到classpath中呢,不是tomcat中的axis的lib中都有这些包吗?使用是它应该会先找tomcat中是否有这些包的支持吧?



W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
3,539.063ms