ec2에 최대 절전 모드 기반 실행 가능 jar를로드 중입니다. 갑자기 hibernate.cfg.xml이 예외가 아닙니다.hibernate.cfg.xml이 발견되지 않았습니다 예외입니다. 어제
233 [main] FATAL com.mcruiseon.server.hibernate.ReadOnlyOperations - Unable to create SessionFactory for Hibernate
233 [main] FATAL com.mcruiseon.server.hibernate.ReadOnlyOperations - ./hibernate.cfg.xml not found
234 [main] FATAL com.mcruiseon.server.hibernate.ReadOnlyOperations - org.hibernate.HibernateException: ./hibernate.cfg.xml not found
org.hibernate.HibernateException: ./hibernate.cfg.xml not found
at org.hibernate.internal.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:173)
at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1929)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1910)
다음은 cfg.xml 파일이 들어있는 폴더의 스냅 샷입니다.
다음 코드 단편을 사용하여 최대 절전 모드를 초기화하려고합니다. 그것은 단지 configure()
와 함께 일하고 있었는데, 웬일인지 작동을 멈췄습니다.
편집 : 더욱 악화되기 시작한 지금은 log4j 문제가 발생했습니다. 나는 나쁜 날을 보내고 있습니다.
INFO net.spy.memcached.MemcachedConnection: Connection state changed for [email protected]
Exception in thread "main" java.lang.NoSuchFieldError: TRACE
at org.jboss.logging.Log4jLogger.translate(Log4jLogger.java:58)
at org.jboss.logging.Log4jLogger.isEnabled(Log4jLogger.java:39)
at org.jboss.logging.Logger.tracev(Logger.java:197)
시도했지만 작동하지 않았다 – Siddharth
질문에 컴파일하고 코드를 실행하는 방법을 언급 할 수 있습니까? 명령 줄 ?? IDE ?? – Arham
둘 다 결과를 저장합니다. – Siddharth