Menu

Can not build war nor deploy in 2.2.6

Help
2008-04-02
2013-04-25
  • Horst Häring

    Horst Häring - 2008-04-02

    Hi,

    I've been playing with sql2java at the moment.
    To get something visible I tried to delpoy to a tomcat (5.5.23).
    The settings (ANT_HOME, JAVA_HOME) where ant 1.6.3 and java 1.5.
    Everything works fine but when deploying I get this message:
      sql2java-2-6-6\build.xml:270: Deployment descriptor: D:\Archiv\download\sql2java-2-6-6\src\web\WEB-INF\web.xml does not exist.
    ...which is true.

    Did I miss something? And, hey, I've the read the manual since there was one. I also studied the (generated) code but no avail.

    Another question about relations like 1-1, 1-many, ... are they supported? From what I've seen so far I don't think so (as the corresponding question some threads before hasn't been answered yet).

    Thanks in advance,

    Horst

     
    • Alain Fagot Béarez

      Hallo Horst,

      Entschuldigung für die andere unantwortete Frage.  Ich habe jetzt ein Antwort geschrieben.

      As for your question about deploying to Tomcat, you will need to have (at least) the following 4 "folders" included in your sql2java.properties:

      template.folder.include=java factory db web

      I should leave them all active in the distribution, but they would then generate classes most of the time unused.

      Hope this helps,
      Alain

       
    • Horst Häring

      Horst Häring - 2008-04-04

      Hi Alain,

      I added the web entry and it worked (after fixing some import-problem in the generated classes).
      Since I'm not familiar with velocity I was a little bit lost.
      Thank you for the help.

      Cheers,
      Horst

       
      • Alain Fagot Béarez

        Hallo Horst,

        Please let me know the kind of fixing you had to do in the generated classes, so that I could patch the templates. After all, this is a part of the generator I never used. :'(

        Or could you send me (kameleono@users.sourceforge.net) your hand-crafted classes and web.xml

        Thanks for your help,
        Alain

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.