我正在使用JBoss Developer Studio.我有一个带有persistence.xml文件的项目.该文件对我来说很完美,但我在列出项目所有问题的选项卡上不断收到此错误.
原文链接:https://www.f2er.com/xml/292668.htmlClass "[Ljava.lang.String;@22ec7158" cannot be resolved
我将图片包含在内以获得更好的背景.
当我点击错误时,它会将我带到发生错误的地方,它会将我带到文件的末尾.
persistence.xml中
<?xml version="1.0" encoding="UTF-8"?> <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"> <persistence-unit name="Persistence"> <provider>org.hibernate.ejb.HibernatePersistence</provider> <jta-data-source>java:jboss/datasources/MemberOfferDS</jta-data-source> <class>com.bbb.memberoffer.model.SycsCoordinator</class> <class>com.bbb.aicweb.memberoffer.model.SycsCoordinatorPhoneNumber</class> <class>com.bbb.memberoffer.model.SycsCoordinatorClub</class> <class>com.bbb.memberoffer.model.SycsCoordinatorSecurityGroup</class> <class>com.bbb.memberoffer.model.SycsCoordinatorClubPk</class> <class>com.bbb.memberoffer.model.PhoneNumberType</class> <class>com.bbb.memberoffer.model.Club</class> <exclude-unlisted-classes>true</exclude-unlisted-classes> <properties> <!-- Not sure if this is the right one to use or not? --> <property name='hibernate.show_sql' value='true' /> <property name='hibernate.format_sql' value='true' /> <property name="hibernate.dialect" value="org.hibernate.dialect.sqlServerDialect"/> </properties> </persistence-unit> </persistence>