최대 절전 모드 프레임 워크를 사용하고 있습니다. 다음은 hibernate.cfg.xml 파일 코드입니다. Tomcat : 404 요청한 리소스를 사용할 수 없습니다.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory name="">
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.password">702711</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@10.69.18.24:1521:xe</property>
<property name="hibernate.connection.username">system</property>
<property name="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</property>
<mapping class="com.eccSports.entity.UserEntity"/>
</session-factory>
</hibernate-configuration>
그리고 web.xml 파일 :
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
<display-name>ECCSports</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>Jersey REST Service</servlet-name>
<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
<init-param>
<param-name>jersey.config.server.provider.packages</param-name>
<param-value>com.eccSports.api</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Jersey REST Service</servlet-name>
<url-pattern>/api/*</url-pattern>
</servlet-mapping>
</web-app>
This is the directory structure.
모든 파일이 있습니다하지만 난 아직도 내가 서버를 여러 번 다시 시작 (404)를 받고,하지만 여전히 작동하지 않는 그것입니다. 난 당신이 아래 단계를 수행하고 있는지 확인 .... 당신이 저지를 useing되어보고 최대 절전 모드 수 있듯이
왜 최대 절전 모드에 관련이 있습니까? 어떤 MVC를 사용하고 있습니까? –
@vipincp 기본적으로 일부 각도 작업을하고 최대 절전 모드를 통해 Oracle 데이터베이스를 연결하고 있습니다. –
요청은 어떻게 생겼습니까? 로그에있는 게 뭐 있니? –