real netbeans java web project.

git-svn-id: https://svn.coded.pt/svn/SIPRP@1402 bb69d46d-e84e-40c8-a05a-06db0d633741
lxbfYeaa
Diogo Neves 15 years ago
parent 84dac01906
commit f1b170a571

Binary file not shown.

@ -550,7 +550,6 @@ exists or setup the property manually. For example like this:
<copyfiles files="${file.reference.xml-apis-1.3.04.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.xml-apis-1.3.04.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.xml-apis-ext-1.3.04.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.xml-apis-ext-1.3.04.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.xmlgraphics-commons-1.3.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.xmlgraphics-commons-1.3.1.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.siprpsoft.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.siprpsoft.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.org.springframework.beans-3.0.0.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.org.springframework.beans-3.0.0.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.commons-httpclient-3.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.commons-httpclient-3.1.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.commons-lang-2.4.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.commons-lang-2.4.jar" todir="${dist.ear.dir}"/>
@ -565,9 +564,10 @@ exists or setup the property manually. For example like this:
<copyfiles files="${file.reference.commons-codec-1.4.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.commons-codec-1.4.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.commons-io-1.4.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.commons-io-1.4.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.truelicense.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.truelicense.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.siprpsoft.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.siprpsoft.jar" todir="${dist.ear.dir}"/>
<mkdir dir="${build.web.dir}/META-INF"/>
<manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update">
<attribute name="Class-Path" value="${manifest.file.reference.ashwood-2.0.jar} ${manifest.file.reference.avalon-framework-4.2.0.jar} ${manifest.file.reference.batik-all-1.7.jar} ${manifest.file.reference.commons-collections-3.1.jar} ${manifest.file.reference.evologger.jar} ${manifest.file.reference.evolute.jar} ${manifest.file.reference.log4j-1.2.15.jar} ${manifest.file.reference.postgresql-8.2-506.jdbc4.jar} ${manifest.file.reference.xalan-2.7.0.jar} ${manifest.file.reference.xercesImpl-2.7.1.jar} ${manifest.file.reference.xml-apis-1.3.04.jar} ${manifest.file.reference.xml-apis-ext-1.3.04.jar} ${manifest.file.reference.xmlgraphics-commons-1.3.1.jar} ${manifest.file.reference.siprpsoft.jar} ${manifest.file.reference.org.springframework.beans-3.0.0.jar} ${manifest.file.reference.commons-httpclient-3.1.jar} ${manifest.file.reference.commons-lang-2.4.jar} ${manifest.file.reference.commons-logging-1.1.1.jar} ${manifest.file.reference.commons-validator-1.3.1.jar} ${manifest.file.reference.org.springframework.context-3.0.0.jar} ${manifest.file.reference.org.springframework.core-3.0.0.jar} ${manifest.file.reference.spring-ws-core-1.5.9.jar} ${manifest.file.reference.spring-ws-core-tiger-1.5.9.jar} ${manifest.file.reference.spring-ws-support-1.5.9.jar} ${manifest.file.reference.spring-xml-1.5.9.jar} ${manifest.file.reference.commons-codec-1.4.jar} ${manifest.file.reference.commons-io-1.4.jar} ${manifest.file.reference.truelicense.jar} "/>
<attribute name="Class-Path" value="${manifest.file.reference.ashwood-2.0.jar} ${manifest.file.reference.avalon-framework-4.2.0.jar} ${manifest.file.reference.batik-all-1.7.jar} ${manifest.file.reference.commons-collections-3.1.jar} ${manifest.file.reference.evologger.jar} ${manifest.file.reference.evolute.jar} ${manifest.file.reference.log4j-1.2.15.jar} ${manifest.file.reference.postgresql-8.2-506.jdbc4.jar} ${manifest.file.reference.xalan-2.7.0.jar} ${manifest.file.reference.xercesImpl-2.7.1.jar} ${manifest.file.reference.xml-apis-1.3.04.jar} ${manifest.file.reference.xml-apis-ext-1.3.04.jar} ${manifest.file.reference.xmlgraphics-commons-1.3.1.jar} ${manifest.file.reference.org.springframework.beans-3.0.0.jar} ${manifest.file.reference.commons-httpclient-3.1.jar} ${manifest.file.reference.commons-lang-2.4.jar} ${manifest.file.reference.commons-logging-1.1.1.jar} ${manifest.file.reference.commons-validator-1.3.1.jar} ${manifest.file.reference.org.springframework.context-3.0.0.jar} ${manifest.file.reference.org.springframework.core-3.0.0.jar} ${manifest.file.reference.spring-ws-core-1.5.9.jar} ${manifest.file.reference.spring-ws-core-tiger-1.5.9.jar} ${manifest.file.reference.spring-ws-support-1.5.9.jar} ${manifest.file.reference.spring-xml-1.5.9.jar} ${manifest.file.reference.commons-codec-1.4.jar} ${manifest.file.reference.commons-io-1.4.jar} ${manifest.file.reference.truelicense.jar} ${manifest.file.reference.siprpsoft.jar} "/>
</manifest>
</target>
<target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
@ -584,7 +584,6 @@ exists or setup the property manually. For example like this:
<copyfiles files="${file.reference.xml-apis-1.3.04.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.xml-apis-ext-1.3.04.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.xmlgraphics-commons-1.3.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.siprpsoft.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.org.springframework.beans-3.0.0.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-httpclient-3.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-lang-2.4.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
@ -599,6 +598,7 @@ exists or setup the property manually. For example like this:
<copyfiles files="${file.reference.commons-codec-1.4.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-io-1.4.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.truelicense.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.siprpsoft.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
</target>
<target depends="init,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" if="do.tmp.war.package" name="do-ear-dist">
<dirname file="${dist.ear.war}" property="dist.jar.dir"/>

@ -1,8 +1,8 @@
build.xml.data.CRC32=95bbc48a
build.xml.data.CRC32=d81d303c
build.xml.script.CRC32=04f3d76d
build.xml.stylesheet.CRC32=c0ebde35@1.15.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=95bbc48a
nbproject/build-impl.xml.script.CRC32=91c20735
nbproject/build-impl.xml.data.CRC32=d81d303c
nbproject/build-impl.xml.script.CRC32=25989aa0
nbproject/build-impl.xml.stylesheet.CRC32=8ab4467e@1.15.2.1

@ -68,7 +68,6 @@ javac.classpath=\
${file.reference.xml-apis-1.3.04.jar}:\
${file.reference.xml-apis-ext-1.3.04.jar}:\
${file.reference.xmlgraphics-commons-1.3.1.jar}:\
${file.reference.siprpsoft.jar}:\
${file.reference.org.springframework.beans-3.0.0.jar}:\
${file.reference.commons-httpclient-3.1.jar}:\
${file.reference.commons-lang-2.4.jar}:\
@ -82,7 +81,8 @@ javac.classpath=\
${file.reference.spring-xml-1.5.9.jar}:\
${file.reference.commons-codec-1.4.jar}:\
${file.reference.commons-io-1.4.jar}:\
${file.reference.truelicense.jar}
${file.reference.truelicense.jar}:\
${file.reference.siprpsoft.jar}
# Space-separated list of extra javac options
javac.compilerargs=
javac.debug=true

@ -58,10 +58,6 @@
<file>${file.reference.xmlgraphics-commons-1.3.1.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.siprpsoft.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.org.springframework.beans-3.0.0.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
@ -118,6 +114,10 @@
<file>${file.reference.truelicense.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.siprpsoft.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
</web-module-libraries>
<web-module-additional-libraries/>
<source-roots>

@ -0,0 +1,59 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package siprp.images.servlet;
import com.evolute.application.initializer.DefaultDatabaseInitializer;
import com.evolute.entity.ProviderInterface;
import com.evolute.utils.Singleton;
import com.evolute.utils.dataedition.persistence.Persistent;
import com.evolute.utils.error.ErrorLogger;
import siprp.data.outer.ImageData;
/**
*
* @author dneves
*/
public class ImageDataProvider
{
private static ImageDataProvider INSTANCE = null;
private ProviderInterface< Persistent< ? >, Exception > ENTITY_PROVIDER = null;
private ImageDataProvider() throws Exception
{
if ( Singleton.getInstance( Singleton.DEFAULT_EVO_DATA_PROVIDER ) == null )
{
new DefaultDatabaseInitializer( DBConstants.SERVER, DBConstants.PORT, DBConstants.DATABASE,
DBConstants.USER, DBConstants.PASSWORD ).doInit();
}
ENTITY_PROVIDER = ( ProviderInterface< Persistent< ? >, Exception > ) Singleton.getInstance( Singleton.DEFAULT_EVO_DATA_PROVIDER );
}
public static synchronized ImageDataProvider getProvider() throws Exception
{
if ( INSTANCE == null )
{
INSTANCE = new ImageDataProvider();
}
return INSTANCE;
}
public ImageData loadImageDataByID( Integer imageID )
{
ImageData result = null;
try
{
result = ENTITY_PROVIDER.load( ImageData.class, imageID, ImageData.ID );
}
catch ( Exception e )
{
ErrorLogger.logException( e );
}
return result;
}
}

@ -1,8 +1,5 @@
package siprp.images.servlet;
import com.evolute.application.initializer.DefaultDatabaseInitializer;
import com.evolute.entity.ProviderInterface;
import com.evolute.utils.Singleton;
import com.evolute.utils.error.ErrorLogger;
import javax.servlet.ServletOutputStream;
@ -10,7 +7,6 @@ import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import siprp.data.outer.ImageData;
import siprp.data.provider.ImageDataProvider;
public final class ImagesServlet extends HttpServlet
{
@ -39,13 +35,6 @@ public final class ImagesServlet extends HttpServlet
try
{
ProviderInterface prov = ( ProviderInterface ) Singleton.getInstance( Singleton.DEFAULT_EVO_DATA_PROVIDER );
if ( prov == null )
{
new DefaultDatabaseInitializer( DBConstants.SERVER, DBConstants.PORT, DBConstants.DATABASE,
DBConstants.USER, DBConstants.PASSWORD ).doInit();
}
ServletOutputStream out = response.getOutputStream();
if ( param != null )

Loading…
Cancel
Save