When making a report today, when you jump to the report page, no data will be displayed, and an error will be reported that the data set has not been generated
Javax.naming.namenotfoundexception: name JDBC is not bound in this context
Then I looked for the configuration files of those databases and thought that there was something wrong. Including two in the project and one in tomcat, no problem
Finally, it is found that the configuration in comfig.xml has not been released. This is a record to prevent this kind of error
<dsConf>
<dataSource>
<Name>sms</Name> <!-- Data source names, consistent with those in the designer -->
<JNDIPrefix> java:comp/env/</JNDIPrefix> <! -- java:comp/env/ JNDI lookup prefix -->
<JNDIName>jdbc/smsdb</JNDIName> <! -- JNDI resource name of the data source -->
<DBType>ORACLE</DBType> <! -- Database type -->
<DBEncode>GBK</DBEncode> <! -- Database encoding method -->
<SQLDecode>false</SQLDecode> <! -- Whether to do Sql statement transcoding -->
<Default>true</Default> <! -- Whether to be the default data source -->
</dataSource>
<dataSource>
<Name>fss</Name> <! -- Data source name, consistent with in the designer -- >
<JNDIPrefix></JNDIPrefix> <! -- JNDI lookup prefix -->
<JNDIName>jdbc/feiandb</JNDIName> <! -- JNDI resource name of the data source -->
<DBType>ORACLE</DBType> <! -- Database type -->
<DBEncode>GBK</DBEncode> <! -- Database encoding method -->
<SQLDecode>false</SQLDecode> <! -- Whether to do Sql statement transcoding -->
<Default>true</Default> <! -- Whether to be the default data source -->
</dataSource>
<!-- xml data source configuration
<dataSource type="xml">
<Name>XML</Name>
<Def name="Publication Information" xml="D:\DATASOURCE_XML\table1.xml" encode=""/>
<Def name="Table 15" xml="D:\DATASOURCE_XML\Table15.xml" encode=""/>
</dataSource>
-->
<! -- webservice data source configuration
<dataSource type="webservice">
<Name>WS</Name>
<WSDL>http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?wsdl</WSDL>
</dataSource>
-->
</dsConf>
Similar Posts:
- [Solved] Spring Boot Error: “jdbcUrl is required with driverClassName.”
- Springboot Error: Failed to configure a DataSource: ‘url’ attribute is not specified and no embedd
- [Solved] Failed to bind properties under ” to com.zaxxer.hikari.Hikari DataSource Spring Boot
- Logstash output jdbc Error: java.lang.IllegalAccessError: tried to access class com.mysql.jdbc.EscapeProcessor from class com.mysql.jdbc.ConnectionImpl
- [Solved] spark Connect hive Error: javax.jdo.JDODataStoreException: Required table missing : “`DBS`” in Catalog “” Schema “”
- [Solved] Mybatis-config Error: Cannot load connection class because of underlying exception: com.mysql.cj.exceptions.WrongArgumentException: failed to parse the connection string near ‘;useUnicode=true&
- SpringBoot Frame: Failed to determine a suitable driver class [How to Solve]
- [Solved] mapper.xml Error: java.lang.AbstractMethodError: Method oracle/jdbc/driver/OracleResultSetImpl.getNString(Ljava/lang/String;)Ljava/lang/String; is abstract,
- java.sql.SQLException: Fail to convert to internal
- Reason: Failed to determine a suitable driver class