2017-08-09 44 views
0

配置我的服务器以使用jndi后,每次我部署我得到405,当访问我的项目的jsp时,所有包含和资源都标记为405,CSS,JavaScript全部,而我没有任何可能发生的线索我添加server.xmltomcat 9在所有资源中出现错误405

<!-- Global JNDI resources 
     Documentation at /docs/jndi-resources-howto.html 
    --> 
    <GlobalNamingResources> 
    <!-- Editable user database that can also be used by 
     UserDatabaseRealm to authenticate users 
    --> 
    <Resource auth="Container" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" name="UserDatabase" pathname="conf/tomcat-users.xml" type="org.apache.catalina.UserDatabase"/> 
    <Resource auth="Container" 
    driverClassName="oracle.jdbc.OracleDriver" 
    maxActive="120" 
    maxIdle="10" 
    maxWait="5000" 
    name="jdbc/abc" 
    password="" 
    poolPreparedStatements="true" 
    type="javax.sql.DataSource" 
    url="" 
    username=""/> 
    </GlobalNamingResources> 

     <Context docBase="abc" path="/abc" reloadable="true" source="org.eclipse.jst.jee.server:abc"/></Host> 
    </Engine> 
    </Service> 
</Server> 

是否有我的配置上的任何错误?我可以考虑的另一件事是我有一个默认包中的java类来测试与我的服务器的连接,尽管我已经删除了它。

回答

0

只是创建另一个tomcat服务器,它的工作原理

相关问题