在导入了hibernate框架的所有配置文件(包括oracle中的驱动文件),出现找不到类的错误,求java高手帮助 70
SLF4J:Failedtoloadclass"org.slf4j.impl.StaticLoggerBinder".SLF4J:Defaultingtono-opera...
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" java.lang.NoClassDefFoundError: javax/security/jacc/PolicyContextException
<session-factory>
<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="connection.username">xxx</property>
<property name="connection.password">xxx</property>
<property name="connection.url">jdbc:oracle:thin:@localhost:1521:orcl</property>
<property name="show_sql">true</property>
<mapping resource="xxx/xxx/xxx/customer.hbm.xml"/>
</session-factory>
win8系统
急,需要问题补充的,请说明 展开
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" java.lang.NoClassDefFoundError: javax/security/jacc/PolicyContextException
<session-factory>
<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="connection.username">xxx</property>
<property name="connection.password">xxx</property>
<property name="connection.url">jdbc:oracle:thin:@localhost:1521:orcl</property>
<property name="show_sql">true</property>
<mapping resource="xxx/xxx/xxx/customer.hbm.xml"/>
</session-factory>
win8系统
急,需要问题补充的,请说明 展开
1个回答
展开全部
很明显,缺jar包,都学到Hibernate了这个错误不应该看不出来啊
去http://www.slf4j.org/download.html下载相应的jar放到构建路径即可。
去http://www.slf4j.org/download.html下载相应的jar放到构建路径即可。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询