0

これは、チェックのために私に紹介された例外です。この例外は、ICICI銀行のAPI統合を行うときに発生しました。

java.lang.Exception:CreateInstanceが失敗しました:新しいcom.opus.epg.sfa.java.BillToAddress

参照URL: http: //kndexim.com/java/SFAClient/TestPages/TestSsl.php

私は基本的にJ2EE開発者ですが、phpとについては少ししか知りません。これはいくつかのクラスパスの問題に関連していることを私は知っています。これに対する解決策を得ることができますか?私の質問が明確でない場合は、詳細を提供するように依頼してください。

web.xmlファイルの内容を以下に示します

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
    <!-- support for Java EE cluster, remove this line if you want to put non-serializable objects into the java_session() -->
    <distributable/>

    <!-- Your system PHP executable. Default is /usr/bin/php-cgi or c:/Program Files/PHP/php-cgi.exe -->  
    <!--<context-param><param-name>php_exec</param-name><param-value>php-cgi</param-value></context-param>-->
    <!-- Prefer a system PHP executable, if available. Otherwise use the PHP from the .war file. Default is Off -->
    <context-param><param-name>prefer_system_php_exec</param-name><param-value>On</param-value></context-param>

    <!-- Handle PHP urls which cannot be expressed using a standard servlet spec 2.2 url-pattern, 
         e.g.: *.php/delete/from?what=that You may remove this and the filter-mapping below -->
    <filter><filter-name>PhpCGIFilter</filter-name><filter-class>php.java.servlet.PhpCGIFilter</filter-class></filter>
    <filter-mapping><filter-name>PhpCGIFilter</filter-name><url-pattern>/*</url-pattern></filter-mapping>

    <!-- Attach the JSR223 script factory to the servlet context -->
    <listener><listener-class>php.java.servlet.ContextLoaderListener</listener-class></listener>

    <!-- PHP Servlet: back-end for Apache or IIS -->
    <servlet><servlet-name>PhpJavaServlet</servlet-name><servlet-class>php.java.servlet.PhpJavaServlet</servlet-class></servlet>

    <!-- PHP CGI servlet: when IIS or Apache are not available -->
    <servlet><servlet-name>PhpCGIServlet</servlet-name><servlet-class>php.java.servlet.fastcgi.FastCGIServlet</servlet-class></servlet>

    <!-- PHP Servlet Mapping -->
    <servlet-mapping><servlet-name>PhpJavaServlet</servlet-name><url-pattern>*.phpjavabridge</url-pattern></servlet-mapping>

    <!-- PHP CGI Servlet Mapping -->
    <servlet-mapping><servlet-name>PhpCGIServlet</servlet-name><url-pattern>*.php</url-pattern></servlet-mapping>

    <!-- Welcome files -->
    <welcome-file-list>
        <welcome-file>index.php</welcome-file>
    </welcome-file-list>

</web-app>
4

2 に答える 2

0

com.opus.epg.sfa.java.BillToAddressWebappClassLoaderには、クラス、が定義されていません。

クラスを含むjarがクラスパスに含まれていることを確認する必要があります。含まれている場合はjava_require('someJar.jar')、それを使用してクラスパスに含めます。

于 2012-06-05T06:18:09.973 に答える
0

There is a ClassNotFoundException. Typical cause is jar missing.

Try looking for this class com.opus.epg.sfa.java.BillToAddress and include the class/jar in the classpath.

于 2012-06-05T06:17:29.297 に答える