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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
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
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