mine web.xml

------------------------------------

<?xml version="1.0" encoding="UTF-8" ?>
<web-app 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>GWT-Maven-Archetype</display-name>

    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
    </welcome-file-list>

    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>classpath:/WEB-INF/applicationContext.xml</param-
value>
    </context-param>

    <listener>
        <listener-
class>org.springframework.web.context.ContextLoaderListener</listener-
class>
    </listener>

    <servlet>
        <servlet-name>uniqaRPCServices</servlet-name>
        <servlet-
class>org.springframework.web.servlet.DispatcherServlet</servlet-
class>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>uniqaRPCServices</servlet-name>
        <url-pattern>/com.uniqa.Application/services/*</url-pattern>
    </servlet-mapping>

</web-app>
------------------------------------------

mine applicationContext.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:aop="http://www.springframework.org/schema/aop";
       xmlns:tx="http://www.springframework.org/schema/tx";
       xmlns:context="http://www.springframework.org/schema/context";
       xsi:schemaLocation="http://www.springframework.org/schema/beans
                           
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
                           http://www.springframework.org/schema/tx
                           
http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
                           http://www.springframework.org/schema/aop
                           
http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
                           http://www.springframework.org/schema/context
                           
http://www.springframework.org/schema/context/spring-context-2.1.xsd";>

  <!-- enables interpretation of the @Required annotation to ensure
that dependency injection actually occures -->
    <bean
class="org.springframework.beans.factory.annotation.RequiredAnnotationBeanPostProcessor"/
>

  <!-- enables interpretation of the @PersistenceUnit/
@PersistenceContext annotations providing convenient
       access to EntityManagerFactory/EntityManager -->
    <bean
class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"/
>

    <import resource="applicationDAO.xml" />

  <!-- enables interpretation of the @Configurable annotation for
domain object dependency injection -->
    <aop:spring-configured/>


    <!-- автоматическое создание компонент -->
    <context:component-scan base-package="com.uniqa.server.dao.uniqa" /
>
    <context:component-scan base-package="com.uniqa.server.rpc.uniqa" /
>


    <!-- dozer для автоматического переноса с компоненты на компоненту
-->
    <bean id="dozerMapper"
class="net.sf.dozer.util.mapping.DozerBeanMapper">
    </bean>



</beans>

---------------- end of applicationContext.xml -------------------


and mine uniqaRPCServices-servlet.xml is
 
------------------------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:aop="http://www.springframework.org/schema/aop";
       xmlns:context="http://www.springframework.org/schema/context";
       xmlns:tx="http://www.springframework.org/schema/tx";
       xmlns:p="http://www.springframework.org/schema/p";
       xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
       http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
       http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
       http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd";>


    <!-- компоненты для GWT -->
    <bean id="urlMapping"
class="org.gwtwidgets.server.spring.GWTHandler">

        <!-- Supply here mappings between URLs and services. Services
must implement the RemoteService interface but
        are not otherwise restricted.-->
        <property name="mappings">
            <map>
                <!-- Other mappings could follow -->
                <entry key="/com.uniqa.lex.uniqa.SprGrajdanstv.rpc"
value-ref="com.uniqa.lex.uniqa.SprGrajdanstv" />



                <!-- Географические справочники -->
                <entry key="/com.uniqa.lex.uniqa.SprGorodov.rpc" value-
ref="com.uniqa.lex.uniqa.SprGorodov" />
                <entry key="/com.uniqa.lex.uniqa.SprGosudarstv.rpc"
value-ref="com.uniqa.lex.uniqa.SprGosudarstv" />
            </map>
        </property>
    </bean>
</beans>

----------------------- end of uniqaRPCServices-servlet.xml
----------------------

also there is the applicationDao.xml


But anyway configured in such way and deployed to tomcat - it simply
works.

On 28 апр, 14:30, Paul Grenyer <[email protected]> wrote:
> Hi
>
> On Tue, Apr 28, 2009 at 12:28 PM, zipito <[email protected]> wrote:
>
> > Hi all.
>
> > this is mine first post to this thread. :)
>
> What does your web.xml and spring xml config files look like?
>
> --
> Thanks
> Paul
>
> Paul Grenyer
> e: [email protected]
> w:http://www.marauder-consulting.co.uk
> b: paulgrenyer.blogspot.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to