Java 银行api集成中的例外情况
这是一个例外,请提交给我检查。在对ICICI bank进行API集成时引发了此异常 java.lang.Exception:CreateInstance失败:新建 com.opus.epg.sfa.java.BillToAddress 参考网址: 我基本上是一个J2EE开发人员,我只知道一点点关于php和。我知道这与一些类路径问题有关。我能找到解决办法吗。如果我的问题不清楚,请提问,我会提供更多细节 web.xml文件的内容如下所示Java 银行api集成中的例外情况,java,php,exception,Java,Php,Exception,这是一个例外,请提交给我检查。在对ICICI bank进行API集成时引发了此异常 java.lang.Exception:CreateInstance失败:新建 com.opus.epg.sfa.java.BillToAddress 参考网址: 我基本上是一个J2EE开发人员,我只知道一点点关于php和。我知道这与一些类路径问题有关。我能找到解决办法吗。如果我的问题不清楚,请提问,我会提供更多细节 web.xml文件的内容如下所示 <?xml version="1.0" encoding
<?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>
首选\u系统\u php\u execOn
PhpCGIFilterphp.java.servlet.PhpCGIFilter
PhpCGIFilter/*
php.java.servlet.ContextLoaderListener
PhpJavaServletphp.java.servlet.PhpJavaServlet
PhpCGIServletphp.java.servlet.fastcgi.FastCGIServlet
PhpJavaServlet*.phpjavabridge
PhpCGIServlet*.php
index.php
存在ClassNotFoundException。典型的原因是罐子不见了
尝试查找此类com.opus.epg.sfa.java.BillToAddress,并在类路径中包含类/jar。WebappClassLoader中没有定义类com.opus.epg.sfa.java.BillToAddress
您应该确保包含该类的jar包含在类路径中,一旦这样做,请使用
java\u require('someJar.jar')
将其包含在类路径中。是否应该包含servlet.jar、servlet-api.jar?