2012-06-05 43 views
0

這是我提到的一個例外,用於檢查。 ICICI銀行的API集成時引發了這種異常。銀行api集成的例外

java.lang.Exception的:的CreateInstance失敗:新 com.opus.epg.sfa.java.BillToAddress

參考網址:http://kndexim.com/java/SFAClient/TestPages/TestSsl.php

我基本上是一個J2EE開發者,我只知道一點關於PHP和。我知道這與一些課堂路徑問題有關。我可以爲此獲得解決方案嗎?如果我的問題不明確,請詢問我將提供更多詳細信息。下面

<?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> 
+0

應該包含servlet.jar,servlet-api.jar嗎? – arjuncc

回答

0

web.xml文件的

內容給出有一個ClassNotFoundException。典型的原因是缺少jar。

試着找這個類com.opus.epg.sfa.java.BillToAddress並在類路徑中包含class/jar。

0

WebappClassLoader沒有在其中定義的類com.opus.epg.sfa.java.BillToAddress

您應該確保包含該類的jar包含在類路徑中,並且一旦這樣做,請使用java_require('someJar.jar')將其包含到您的類路徑中。