0 Replies Latest reply on Jun 7, 2014 12:22 PM by still_can

    Newly corrected services:   service jboss.naming.context.java.MOCA_DS (new available)

    still_can


      jboss-web.xml

       

      8"?>
      <!-- JBoss, Home of Professional Open Source Copyright 2012, Red Hat, Inc.
         and/or its affiliates, and individual contributors by the @authors tag. See
         the copyright.txt in the distribution for a full listing of individual contributors.
         Licensed under the Apache License, Version 2.0 (the "License"); you may not
         use this file except in compliance with the License. You may obtain a copy
         of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
         by applicable law or agreed to in writing, software distributed under the
         License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
         OF ANY KIND, either express or implied. See the License for the specific
         language governing permissions and limitations under the License. -->

      <!-- Configure usage of the security domain "other" -->
      <jboss-web>
        <context-root>/</context-root>
        <resource-ref>
         <res-ref-name>jdbc/MOCA_DS</res-ref-name>
         <res-type>javax.sql.DataSource</res-type>
         <jndi-name>java:/MOCA_DS</jndi-name>
        </resource-ref>
      </jboss-web>

       

       

       


      web.xml

       

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app id="WebApp_ID" version="2.5"
        xmlns="http://java.sun.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
        <display-name>MOCA_SERVICE</display-name>
        <context-param>
         <param-name>contextConfigLocation</param-name>
         <param-value>classpath:/spring/applicationContext.xml
                   classpath:/spring/applicationContext-db.xml
                   classpath:/spring/applicationContext-mybatis.xml
                   classpath:/spring/applicationContext-rest.xml</param-value>
        </context-param>
        <context-param>
         <param-name>spring.profiles.default</param-name>
         <param-value>DEV</param-value>
        </context-param>
        <context-param>
         <param-name>webAppRootKey</param-name>
         <param-value>webapp.root</param-value>
        </context-param>
        <filter>
         <filter-name>encodingFilter</filter-name>
         <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
         <init-param>
          <param-name>encoding</param-name>
          <param-value>UTF-8</param-value>
         </init-param>
         <init-param>
          <param-name>forceEncoding</param-name>
          <param-value>true</param-value>
         </init-param>
        </filter>
        <filter>
         <filter-name>hiddenHttpMethodFilter</filter-name>
         <filter-class>org.springframework.web.filter.HiddenHttpMethodFilter</filter-class>
        </filter>
        <filter-mapping>
         <filter-name>encodingFilter</filter-name>
         <url-pattern>/*</url-pattern>
        </filter-mapping>
        <filter-mapping>
         <filter-name>hiddenHttpMethodFilter</filter-name>
         <url-pattern>/*</url-pattern>
        </filter-mapping>
        <listener>
         <listener-class>org.springframework.web.util.WebAppRootListener</listener-class>
        </listener>
         <listener>
         <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
        </listener>
        <listener>
         <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
        </listener>
        <servlet>
         <servlet-name>MOCAServlet</servlet-name>
         <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
         <init-param>
          <param-name>contextConfigLocation</param-name>
          <param-value>classpath:/spring/servletContext.xml</param-value>
         </init-param>
         <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
         <servlet-name>MOCAServlet</servlet-name>
         <url-pattern>/moca/*</url-pattern>
        </servlet-mapping>
        <session-config>
         <session-timeout>30</session-timeout>
        </session-config>
        <welcome-file-list>
         <welcome-file>index.jsp</welcome-file>
        </welcome-file-list>
        <distributable/> <!-- <TODO> Jboss Clustering Cloud DP Server-->
        <resource-ref>
         <res-ref-name>jdbc/MOCA_DS</res-ref-name>
         <res-type>javax.sql.DataSource</res-type>
         <res-auth>Container</res-auth>
        </resource-ref>
      app>