# HG changeset patch # User František Kučera # Date 1265831708 -3600 # Node ID 9a3fced9634da37a21e1ebb57a9fcd7156099939 # Parent b8ecf1ac63fbe33effbbc48e0783ebcdb11649a9 Přechod na EAR, EJB. diff -r b8ecf1ac63fb -r 9a3fced9634d .hgignore --- a/.hgignore Wed Feb 10 18:25:55 2010 +0100 +++ b/.hgignore Wed Feb 10 20:55:08 2010 +0100 @@ -1,5 +1,12 @@ +java/SpringDemo1/dist/* +java/SpringDemo1/build/* java/SpringDemo1/nbproject/private -java/SpringDemo1/build -java/SpringDemo1/dist - - +java/SpringDemo1/SpringDemo1-war/build/* +java/SpringDemo1/SpringDemo1-war/dist/* +java/SpringDemo1/SpringDemo1-war/nbproject/private +java/SpringDemo1/SpringDemo1-ejb/build/* +java/SpringDemo1/SpringDemo1-ejb/dist/* +java/SpringDemo1/SpringDemo1-ejb/nbproject/private +java/SpringDemo1/SpringDemo1-lib/build/* +java/SpringDemo1/SpringDemo1-lib/dist/* +java/SpringDemo1/SpringDemo1-lib/nbproject/private diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/SpringDemo1-ejb/nbproject/ant-deploy.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/SpringDemo1/SpringDemo1-ejb/nbproject/ant-deploy.xml Wed Feb 10 20:55:08 2010 +0100 @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/SpringDemo1-ejb/nbproject/build-impl.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/SpringDemo1/SpringDemo1-ejb/nbproject/build-impl.xml Wed Feb 10 20:55:08 2010 +0100 @@ -0,0 +1,647 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set build.generated.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.classes.excludes + Must set dist.jar + +The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}. +Either open the project in the IDE and assign the server or setup the server classpath manually. +For example like this: + ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file) +or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +The libs.CopyLibs.classpath property is not set up. +This property must point to +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part +of NetBeans IDE installation and is usually located at +<netbeans_installation>/java<version>/ant/extra folder. +Either open the project in the IDE and make sure CopyLibs library +exists or setup the property manually. For example like this: + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set main.class + + + + + Must set fix.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/SpringDemo1-ejb/nbproject/genfiles.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/SpringDemo1/SpringDemo1-ejb/nbproject/genfiles.properties Wed Feb 10 20:55:08 2010 +0100 @@ -0,0 +1,8 @@ +build.xml.data.CRC32=c1354544 +build.xml.script.CRC32=7add87d2 +build.xml.stylesheet.CRC32=e5f4c432@1.19.2 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=c1354544 +nbproject/build-impl.xml.script.CRC32=34921854 +nbproject/build-impl.xml.stylesheet.CRC32=b9c9cfe1@1.19.2 diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/SpringDemo1-ejb/nbproject/project.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/SpringDemo1/SpringDemo1-ejb/nbproject/project.properties Wed Feb 10 20:55:08 2010 +0100 @@ -0,0 +1,64 @@ +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form,**/.nbattrs +build.dir=build +build.ear.classes.dir=${build.dir}/classes +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +debug.classpath=${javac.classpath}:${build.classes.dir} +debug.test.classpath=\ + ${run.test.classpath} +dist.dir=dist +dist.ear.jar=${dist.dir}/${jar.name} +dist.jar=${dist.dir}/${jar.name} +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath=\ + ${libs.javaee-endorsed-api-6.0.classpath} +excludes= +includes=** +j2ee.deploy.on.save=false +j2ee.platform=1.6 +j2ee.server.type=gfv3ee6 +jar.compress=false +jar.name=SpringDemo1-ejb.jar +javac.classpath=\ + ${reference.SpringDemo1-lib.jar}:\ + ${libs.spring-framework.classpath} +javac.debug=true +javac.deprecation=false +javac.source=1.5 +javac.target=1.5 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir}:\ + ${libs.junit.classpath}:\ + ${libs.junit_4.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.preview=true +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +meta.inf=${source.root}/conf +meta.inf.excludes=sun-cmp-mappings.xml +platform.active=default_platform +project.SpringDemo1-lib=../SpringDemo1-lib +reference.SpringDemo1-lib.jar=${project.SpringDemo1-lib}/dist/SpringDemo1-lib.jar +resource.dir=setup +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +# Space-separated list of JVM arguments used when running a class with a main method or a unit test +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value): +runmain.jvmargs= +source.encoding=UTF-8 +source.root=src +src.dir=${source.root}/java +test.src.dir=test diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/SpringDemo1-ejb/nbproject/project.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/SpringDemo1/SpringDemo1-ejb/nbproject/project.xml Wed Feb 10 20:55:08 2010 +0100 @@ -0,0 +1,28 @@ + + + org.netbeans.modules.j2ee.ejbjarproject + + + SpringDemo1-ejb + 1.6.5 + reference.SpringDemo1-lib.jar + libs.spring-framework.classpath + + + + + + + + + + SpringDemo1-lib + jar + + jar + clean + jar + + + + diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/SpringDemo1-ejb/src/conf/MANIFEST.MF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/SpringDemo1/SpringDemo1-ejb/src/conf/MANIFEST.MF Wed Feb 10 20:55:08 2010 +0100 @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 + diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/SpringDemo1-ejb/src/conf/beans.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/SpringDemo1/SpringDemo1-ejb/src/conf/beans.xml Wed Feb 10 20:55:08 2010 +0100 @@ -0,0 +1,5 @@ + + + diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/SpringDemo1-ejb/src/java/cz/frantovo/springDemo1/dao/KnihaDAO.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/SpringDemo1/SpringDemo1-ejb/src/java/cz/frantovo/springDemo1/dao/KnihaDAO.java Wed Feb 10 20:55:08 2010 +0100 @@ -0,0 +1,38 @@ +package cz.frantovo.springDemo1.dao; + +import cz.frantovo.springDemo1.dto.Kniha; +import java.util.ArrayList; +import java.util.Collection; +import javax.annotation.Resource; +import javax.sql.DataSource; +import org.springframework.jdbc.core.JdbcTemplate; +import org.springframework.stereotype.Repository; + +/** + * + * @author fiki + */ +@Repository("knihaDAO") +public class KnihaDAO { + + private DataSource dataSource; + + @Resource + public void setDataSource(DataSource dataSource) { + this.dataSource = dataSource; + } + + public Collection getKnihy() { + Collection vysledek = new ArrayList(); + + JdbcTemplate t = new JdbcTemplate(dataSource); + + t.queryForInt("SELECT 1;"); + + Kniha k = new Kniha(); + k.setNazev("Pokusná kniha"); + vysledek.add(k); + + return vysledek; + } +} diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/SpringDemo1-ejb/src/java/cz/frantovo/springDemo1/dto/Kniha.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/SpringDemo1/SpringDemo1-ejb/src/java/cz/frantovo/springDemo1/dto/Kniha.java Wed Feb 10 20:55:08 2010 +0100 @@ -0,0 +1,74 @@ +package cz.frantovo.springDemo1.dto; + +import java.util.Date; + +/** + * + * @author fiki + */ +public class Kniha { + private int id; + private String nazev; + private String isbn; + private int pocetStran; + private Date datumAktualizace; + private int rokVydani; + private int autor; + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public String getNazev() { + return nazev; + } + + public void setNazev(String nazev) { + this.nazev = nazev; + } + + public String getIsbn() { + return isbn; + } + + public void setIsbn(String isbn) { + this.isbn = isbn; + } + + public int getPocetStran() { + return pocetStran; + } + + public void setPocetStran(int pocetStran) { + this.pocetStran = pocetStran; + } + + public Date getDatumAktualizace() { + return datumAktualizace; + } + + public void setDatumAktualizace(Date datumAktualizace) { + this.datumAktualizace = datumAktualizace; + } + + public int getRokVydani() { + return rokVydani; + } + + public void setRokVydani(int rokVydani) { + this.rokVydani = rokVydani; + } + + public int getAutor() { + return autor; + } + + public void setAutor(int autor) { + this.autor = autor; + } + +} diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/SpringDemo1-ejb/src/java/cz/frantovo/springDemo1/web/SpringDemo1Bean.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/SpringDemo1/SpringDemo1-ejb/src/java/cz/frantovo/springDemo1/web/SpringDemo1Bean.java Wed Feb 10 20:55:08 2010 +0100 @@ -0,0 +1,18 @@ +package cz.frantovo.springDemo1.web; + +import cz.frantovo.springDemo1.dao.KnihaDAO; +import cz.frantovo.springDemo1.dto.Kniha; +import java.util.Collection; + +/** + * + * @author fiki + */ +public class SpringDemo1Bean { + + public Collection getKnihy() { + KnihaDAO dao = new KnihaDAO(); + return dao.getKnihy(); + } + +} diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/SpringDemo1-lib/nbproject/build-impl.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/SpringDemo1/SpringDemo1-lib/nbproject/build-impl.xml Wed Feb 10 20:55:08 2010 +0100 @@ -0,0 +1,805 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + + + + + + java -cp "${run.classpath.with.dist.jar}" ${main.class} + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/SpringDemo1-lib/nbproject/genfiles.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/SpringDemo1/SpringDemo1-lib/nbproject/genfiles.properties Wed Feb 10 20:55:08 2010 +0100 @@ -0,0 +1,8 @@ +build.xml.data.CRC32=ebdd84f9 +build.xml.script.CRC32=36f04480 +build.xml.stylesheet.CRC32=958a1d3e@1.32.1.45 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=ebdd84f9 +nbproject/build-impl.xml.script.CRC32=000da4e6 +nbproject/build-impl.xml.stylesheet.CRC32=576378a2@1.32.1.45 diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/SpringDemo1-lib/nbproject/project.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/SpringDemo1/SpringDemo1-lib/nbproject/project.properties Wed Feb 10 20:55:08 2010 +0100 @@ -0,0 +1,61 @@ +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/SpringDemo1-lib.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath=\ + ${libs.JavaEE.classpath} +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.source=1.5 +javac.target=1.5 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir}:\ + ${libs.junit.classpath}:\ + ${libs.junit_4.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +meta.inf.dir=${src.dir}/META-INF +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value +# or test-sys-prop.name=value to set system properties for unit tests): +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/SpringDemo1-lib/nbproject/project.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/SpringDemo1/SpringDemo1-lib/nbproject/project.xml Wed Feb 10 20:55:08 2010 +0100 @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + SpringDemo1-lib + + + + + + + + + diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/SpringDemo1-war/nbproject/ant-deploy.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/SpringDemo1/SpringDemo1-war/nbproject/ant-deploy.xml Wed Feb 10 20:55:08 2010 +0100 @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/SpringDemo1-war/nbproject/build-impl.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/SpringDemo1/SpringDemo1-war/nbproject/build-impl.xml Wed Feb 10 20:55:08 2010 +0100 @@ -0,0 +1,875 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set build.web.dir + Must set build.generated.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.war + +The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}. +Either open the project in the IDE and assign the server or setup the server classpath manually. +For example like this: + ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file) +or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +The libs.CopyLibs.classpath property is not set up. +This property must point to +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part +of NetBeans IDE installation and is usually located at +<netbeans_installation>/java<version>/ant/extra folder. +Either open the project in the IDE and make sure CopyLibs library +exists or setup the property manually. For example like this: + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.jsp.includes + + + + + + + + + + + + + + + + + + + + + + + Must select a file in the IDE or set jsp.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable. + + + Launching ${browse.url} + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/SpringDemo1-war/nbproject/genfiles.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/SpringDemo1/SpringDemo1-war/nbproject/genfiles.properties Wed Feb 10 20:55:08 2010 +0100 @@ -0,0 +1,8 @@ +build.xml.data.CRC32=dc678faa +build.xml.script.CRC32=8b02e3a0 +build.xml.stylesheet.CRC32=c0ebde35@1.21.2.1 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=dc678faa +nbproject/build-impl.xml.script.CRC32=10b6ccbc +nbproject/build-impl.xml.stylesheet.CRC32=b139b33b@1.21.2.1 diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/SpringDemo1-war/nbproject/project.properties --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/SpringDemo1/SpringDemo1-war/nbproject/project.properties Wed Feb 10 20:55:08 2010 +0100 @@ -0,0 +1,79 @@ +build.classes.dir=${build.web.dir}/WEB-INF/classes +build.classes.excludes=**/*.java,**/*.form +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +build.web.dir=${build.dir}/web +build.web.excludes=${build.classes.excludes} +client.urlPart= +compile.jsps=false +conf.dir=${source.root}/conf +debug.classpath=${build.classes.dir}:${javac.classpath} +debug.test.classpath=\ + ${run.test.classpath} +display.browser=true +dist.dir=dist +dist.ear.war=${dist.dir}/${war.ear.name} +dist.javadoc.dir=${dist.dir}/javadoc +dist.war=${dist.dir}/${war.name} +endorsed.classpath=\ + ${libs.javaee-endorsed-api-6.0.classpath} +excludes= +includes=** +j2ee.deploy.on.save=false +j2ee.platform=1.6 +j2ee.server.type=gfv3ee6 +jar.compress=false +javac.classpath=\ + ${reference.SpringDemo1-ejb.dist}:\ + ${reference.SpringDemo1-lib.jar} +# Space-separated list of extra javac options +javac.compilerargs= +javac.debug=true +javac.deprecation=false +javac.source=1.5 +javac.target=1.5 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir}:\ + ${libs.junit.classpath}:\ + ${libs.junit_4.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.preview=true +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +jspcompilation.classpath=${jspc.classpath}:${javac.classpath} +lib.dir=${web.docbase.dir}/WEB-INF/lib +no.dependencies=false +persistence.xml.dir=${conf.dir} +platform.active=default_platform +project.SpringDemo1-ejb=../SpringDemo1-ejb +project.SpringDemo1-lib=../SpringDemo1-lib +reference.SpringDemo1-ejb.dist=${project.SpringDemo1-ejb}/dist/SpringDemo1-ejb.jar +reference.SpringDemo1-lib.jar=${project.SpringDemo1-lib}/dist/SpringDemo1-lib.jar +resource.dir=setup +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +# Space-separated list of JVM arguments used when running a class with a main method or a unit test +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value): +runmain.jvmargs= +source.encoding=UTF-8 +source.root=src +src.dir=${source.root}/java +test.src.dir=test +war.content.additional= +war.ear.name=SpringDemo1-war.war +war.name=SpringDemo1-war.war +web.docbase.dir=web +webinf.dir=web/WEB-INF diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/SpringDemo1-war/nbproject/project.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/SpringDemo1/SpringDemo1-war/nbproject/project.xml Wed Feb 10 20:55:08 2010 +0100 @@ -0,0 +1,45 @@ + + + org.netbeans.modules.web.project + + + SpringDemo1-war + 1.6.5 + + + ${reference.SpringDemo1-ejb.dist} + WEB-INF/lib + + + ${reference.SpringDemo1-lib.jar} + WEB-INF/lib + + + + + + + + + + + + + SpringDemo1-ejb + jar + + dist + clean + dist + + + SpringDemo1-lib + jar + + jar + clean + jar + + + + diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/SpringDemo1-war/src/conf/MANIFEST.MF --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/SpringDemo1/SpringDemo1-war/src/conf/MANIFEST.MF Wed Feb 10 20:55:08 2010 +0100 @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 + diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/SpringDemo1-war/web/WEB-INF/beans.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/SpringDemo1/SpringDemo1-war/web/WEB-INF/beans.xml Wed Feb 10 20:55:08 2010 +0100 @@ -0,0 +1,5 @@ + + + diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/SpringDemo1-war/web/WEB-INF/sun-web.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/SpringDemo1/SpringDemo1-war/web/WEB-INF/sun-web.xml Wed Feb 10 20:55:08 2010 +0100 @@ -0,0 +1,11 @@ + + + + /SpringDemo1-war + + + + Keep a copy of the generated servlet class' java code. + + + diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/SpringDemo1-war/web/index.jsp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/SpringDemo1/SpringDemo1-war/web/index.jsp Wed Feb 10 20:55:08 2010 +0100 @@ -0,0 +1,30 @@ + + + + + + + + SpringDemo1 + + +

SpringDemo1

+

Spring JDBC…

+

Vypíšeme seznam knih:

+ + +
    + +
  • +
    +
+ + + + + +
diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/nbproject/build-impl.xml --- a/java/SpringDemo1/nbproject/build-impl.xml Wed Feb 10 18:25:55 2010 +0100 +++ b/java/SpringDemo1/nbproject/build-impl.xml Wed Feb 10 20:55:08 2010 +0100 @@ -1,23 +1,20 @@ - + - initialization + - compilation + - dist + - execution + - debugging + - cleanup + +--> + @@ -26,130 +23,81 @@ - - - + + + - + - + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - + + + - - - - + - + - - - - + - - - - - + + - + + + + + + + + + + + + + + + + + @@ -158,220 +106,32 @@ - - + - - - - + + - - - - - - + + - + - - Must set src.dir - Must set test.src.dir + Must set build.dir - Must set build.web.dir Must set build.generated.dir Must set dist.dir - Must set build.classes.dir - Must set dist.javadoc.dir - Must set build.test.classes.dir - Must set build.test.results.dir Must set build.classes.excludes - Must set dist.war - -The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}. -Either open the project in the IDE and assign the server or setup the server classpath manually. -For example like this: - ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file) -or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + Must set dist.jar @@ -386,179 +146,107 @@ - + - - - - - + COMPILATION SECTION + --> + + + + + + + + + + + + + + + + + + + + - + + - - - - - - + + + - - - - - + + + - - - - - - - - - - - - - + - - + + + - - Must select some files in the IDE or set javac.includes - - - - + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.jsp.includes - - - - - - - - - - - - - - - - - - - - - - - Must select a file in the IDE or set jsp.includes - - + - + EXECUTION SECTION + --> + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -570,18 +258,17 @@ - + + + - - - + - + - - + @@ -589,8 +276,8 @@ - - + + @@ -598,7 +285,10 @@ - + + + + @@ -645,214 +335,142 @@ - Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable. - + Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable. + Launching ${browse.url} - - Must select one file in the IDE or set run.class - + + - - Must select one file in the IDE or set run.class - + + + + + + + + + + + + + - - + DEBUGGING SECTION + --> + + + - - - + - + + - + - + - - + + + + + + + + + + + + + - - Must select one file in the IDE or set debug.class - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + + + + + + + + + + + + + + + + + - - - - - Must select one file in the IDE or set debug.class - - - - - Must set fix.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - Some tests failed; see details above. - - - - - - - - - Must select some files in the IDE or set test.includes - - - - Some tests failed; see details above. - - - - - Must select one file in the IDE or set test.class - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - - + diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/nbproject/genfiles.properties --- a/java/SpringDemo1/nbproject/genfiles.properties Wed Feb 10 18:25:55 2010 +0100 +++ b/java/SpringDemo1/nbproject/genfiles.properties Wed Feb 10 20:55:08 2010 +0100 @@ -1,8 +1,8 @@ -build.xml.data.CRC32=99d5a06e -build.xml.script.CRC32=6de4a4de -build.xml.stylesheet.CRC32=c0ebde35@1.21.2.1 +build.xml.data.CRC32=62aa1891 +build.xml.script.CRC32=33d0a5b2 +build.xml.stylesheet.CRC32=475c2a62@1.17.2 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=99d5a06e -nbproject/build-impl.xml.script.CRC32=4d6f4164 -nbproject/build-impl.xml.stylesheet.CRC32=b139b33b@1.21.2.1 +nbproject/build-impl.xml.data.CRC32=62aa1891 +nbproject/build-impl.xml.script.CRC32=b5ca9b59 +nbproject/build-impl.xml.stylesheet.CRC32=624b8ca2@1.17.2 diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/nbproject/project.properties --- a/java/SpringDemo1/nbproject/project.properties Wed Feb 10 18:25:55 2010 +0100 +++ b/java/SpringDemo1/nbproject/project.properties Wed Feb 10 20:55:08 2010 +0100 @@ -1,73 +1,33 @@ -build.classes.dir=${build.web.dir}/WEB-INF/classes -build.classes.excludes=**/*.java,**/*.form +build.classes.excludes=**/*.java,**/*.form,**/.nbattrs build.dir=build build.generated.dir=${build.dir}/generated -build.generated.sources.dir=${build.dir}/generated-sources -build.test.classes.dir=${build.dir}/test/classes -build.test.results.dir=${build.dir}/test/results -build.web.dir=${build.dir}/web -build.web.excludes=${build.classes.excludes} +client.module.uri=SpringDemo1-war client.urlPart= -compile.jsps=false -conf.dir=${source.root}/conf -debug.classpath=${build.classes.dir}:${javac.classpath} -debug.test.classpath=\ - ${run.test.classpath} -display.browser=false +debug.classpath=${javac.classpath}::${jar.content.additional}:${run.classpath} +display.browser=true dist.dir=dist -dist.ear.war=${dist.dir}/${war.ear.name} -dist.javadoc.dir=${dist.dir}/javadoc -dist.war=${dist.dir}/${war.name} +dist.jar=${dist.dir}/${jar.name} endorsed.classpath=\ ${libs.javaee-endorsed-api-6.0.classpath} -excludes= -includes=** +j2ee.appclient.mainclass.args=${j2ee.appclient.tool.args} j2ee.deploy.on.save=false -j2ee.platform=1.6-web +j2ee.platform=1.6 j2ee.server.type=gfv3ee6 jar.compress=false -javac.classpath=\ - ${libs.spring-framework.classpath} -# Space-separated list of extra javac options -javac.compilerargs= +jar.content.additional=\ + ${reference.SpringDemo1-war.dist-ear}:\ + ${reference.SpringDemo1-ejb.dist-ear} +jar.name=SpringDemo1.ear javac.debug=true javac.deprecation=false javac.source=1.5 javac.target=1.5 -javac.test.classpath=\ - ${javac.classpath}:\ - ${build.classes.dir}:\ - ${libs.junit.classpath}:\ - ${libs.junit_4.classpath} -javadoc.additionalparam= -javadoc.author=false -javadoc.encoding=${source.encoding} -javadoc.noindex=false -javadoc.nonavbar=false -javadoc.notree=false -javadoc.preview=true -javadoc.private=false -javadoc.splitindex=true -javadoc.use=true -javadoc.version=false -javadoc.windowtitle= -jspcompilation.classpath=${jspc.classpath}:${javac.classpath} -lib.dir=${web.docbase.dir}/WEB-INF/lib -persistence.xml.dir=${conf.dir} +meta.inf=src/conf +no.dependencies=false platform.active=default_platform +project.SpringDemo1-ejb=SpringDemo1-ejb +project.SpringDemo1-war=SpringDemo1-war +reference.SpringDemo1-ejb.dist-ear=${project.SpringDemo1-ejb}/dist/SpringDemo1-ejb.jar +reference.SpringDemo1-war.dist-ear=${project.SpringDemo1-war}/dist/SpringDemo1-war.war resource.dir=setup -run.test.classpath=\ - ${javac.test.classpath}:\ - ${build.test.classes.dir} -# Space-separated list of JVM arguments used when running a class with a main method or a unit test -# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value): -runmain.jvmargs= -source.encoding=UTF-8 -source.root=src -src.dir=${source.root}/java -test.src.dir=test -war.content.additional= -war.ear.name=SpringDemo1.war -war.name=SpringDemo1.war -web.docbase.dir=web -webinf.dir=web/WEB-INF +source.root=. diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/nbproject/project.xml --- a/java/SpringDemo1/nbproject/project.xml Wed Feb 10 18:25:55 2010 +0100 +++ b/java/SpringDemo1/nbproject/project.xml Wed Feb 10 20:55:08 2010 +0100 @@ -1,23 +1,39 @@ - org.netbeans.modules.web.project + org.netbeans.modules.j2ee.earproject - + SpringDemo1 1.6.5 - - - ${libs.spring-framework.classpath} - WEB-INF/lib + + + + ${reference.SpringDemo1-war.dist-ear} + / - - - - - - - - + + ${reference.SpringDemo1-ejb.dist-ear} + / + + + + + SpringDemo1-ejb + j2ee_ear_archive + + dist-ear + clean-ear + dist-ear + + + SpringDemo1-war + j2ee_ear_archive + + dist-ear + clean-ear + dist-ear + + diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/src/java/cz/frantovo/springDemo1/dao/KnihaDAO.java --- a/java/SpringDemo1/src/java/cz/frantovo/springDemo1/dao/KnihaDAO.java Wed Feb 10 18:25:55 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -package cz.frantovo.springDemo1.dao; - -/** - * - * @author fiki - */ -public class KnihaDAO { - -} diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/src/java/cz/frantovo/springDemo1/dto/Kniha.java --- a/java/SpringDemo1/src/java/cz/frantovo/springDemo1/dto/Kniha.java Wed Feb 10 18:25:55 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -package cz.frantovo.springDemo1.dto; - -/** - * - * @author fiki - */ -public class Kniha { - -} diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/src/java/cz/frantovo/springDemo1/web/SpringDemo1Bean.java --- a/java/SpringDemo1/src/java/cz/frantovo/springDemo1/web/SpringDemo1Bean.java Wed Feb 10 18:25:55 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -package cz.frantovo.springDemo1.web; - -/** - * - * @author fiki - */ -public class SpringDemo1Bean { - -} diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/web/WEB-INF/beans.xml --- a/java/SpringDemo1/web/WEB-INF/beans.xml Wed Feb 10 18:25:55 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ - - - diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/web/WEB-INF/sun-web.xml --- a/java/SpringDemo1/web/WEB-INF/sun-web.xml Wed Feb 10 18:25:55 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ - - - - /SpringDemo1 - - - - Keep a copy of the generated servlet class' java code. - - - diff -r b8ecf1ac63fb -r 9a3fced9634d java/SpringDemo1/web/index.jsp --- a/java/SpringDemo1/web/index.jsp Wed Feb 10 18:25:55 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ - - - - - - - - SpringDemo1 - - -

SpringDemo1

-

Spring JDBC…

- - - - -