I am novice with Tomcat so I just added the cayenne part:

<?xml version="1.0" encoding="UTF-8"?>
<web-app 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";
         version="2.5"
         xmlns="http://java.sun.com/xml/ns/javaee";>

  <!-- Servlets -->
  <servlet>
    <servlet-name>greetServlet</servlet-name>
    <servlet-class>gwtpureeof.server.GreetingServiceImpl</servlet-class>
  </servlet>

  <servlet-mapping>
    <servlet-name>greetServlet</servlet-name>
    <url-pattern>/gwtpureeof/greet</url-pattern>
  </servlet-mapping>

<filter>
    <filter-name>CayenneFilter</filter-name>
    
<filter-class>org.apache.cayenne.conf.WebApplicationContextFilter</filter-class>
</filter>
<filter-mapping>
    <filter-name>CayenneFilter</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>

  <!-- Default page to serve -->
  <welcome-file-list>
    <welcome-file>GWTPureEOF.html</welcome-file>
  </welcome-file-list>

</web-app>



The Tomcat log (in french) doesnot say to much

GRAVE: Error filterStart
18 juil. 2013 10:31:02 org.apache.catalina.core.StandardContext startInternal
GRAVE: Erreur de démarrage du contexte [/gwteof] suite aux erreurs précédentes




Thanks for any help

Pierre

Yeah, feel free to take this to Cayenne list. Make sure you post the full 
web.xml and the stack trace. There's something in the startup order. Also 
consider using Cayenne 3.1 (beta). Stack bootstrap is different, and much 
cleaner in it.

Andrus

On Jul 18, 2013, at 11:13 AM, Pierre Gilquin <[email protected]> wrote:

Thanks Andrus,

I try as well with cayenne 3.0 !
It's easy to import an eomodel in cayenne.

But for now I was not able to deploy in Tomcat

I added
<filter>
   <filter-name>CayenneFilter</filter-name>
   
<filter-class>org.apache.cayenne.conf.WebApplicationContextFilter</filter-class>
</filter>
<filter-mapping>
   <filter-name>CayenneFilter</filter-name>
   <url-pattern>/*</url-pattern>
</filter-mapping>

in web.xml generated by gwt

But it was not started ...


Of course it's more a question for cayenne list ...

Pierre


Maybe just use Cayenne. It is trivial to bootstrap in a Java webapp:
https://github.com/andrus/wowodc13 http://cayenne.apache.org/
Andrus
On Jul 18, 2013, at 10:39 AM, Pierre Gilquin <[email protected]> wrote:
Hi all,

I try to make a minimum app in gwt using pure (Wonder) EOF for accessing data.


in the init I did :
        String pathToModel  = 
getServletContext().getRealPath("/Resources/MyModel.eomodeld");
        EOModelGroup.defaultGroup().addModelWithPath(pathToModel);
        ec = ERXEC.newEditingContext();

and it works perfectly in dev mode.


When copy in Tomcat, the  initialization of eof is not correct so I had :
        ERXExtensions.initEOF(new File("/Resources"),new 
String[0],false,false,true);
        
without success.

Is there a way to init EOF outside of a standard wonder wo app ?


May be it's related to properties, how can I force to use my properties file 
inside the WEB-INF directory ?


Thinks in advance


Pierre

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/andrus%40objectstyle.org

This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/andrus%40objectstyle.org

This email sent to [email protected]



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to