Questions tagged as 'java'

1
answer

Eclipse executes the xml buildfile of ANT 2 times, even having to execute only once

In netbeans, after a few searches, I was able to edit the build.xml file to customize the way the IDE generated my jar and my manifest file. I had to migrate some projects to eclipse, and I even found the option to build jar, but I need t...
asked by 16.11.2016 / 11:55
1
answer

Message "Could not reserve enough space for object heap" in the JVM

So I wanted to know what the limitation is for memory allocation to the JVM depending on the operating system and processor architecture. If you configure it, lower the maximum value of the perm-size to a lower value, can you further increase th...
asked by 25.08.2014 / 19:30
1
answer

Problem in thread execution, using flags

I'm having problems understanding the code completely because I'm new to using java in thread. What code will do is to control the flow by doing 55 iterations by dividing the thread and main program: Resultado: Main Thread.: 1 New Thread..: 2...
asked by 08.04.2014 / 00:35
1
answer

Duplicate records with OneToMany relationship

I have a mapping as follows: public class ClasseA { public ClasseA(){ listaClasseB = new ArrayList<ClasseB>; } @OneToMany(mappedBy = "xxxx", fetch = FetchType.LAZY, cascade = CascadeType.ALL, orphanRemoval = true)...
asked by 27.11.2014 / 13:11
1
answer

JAXB - Tag repeating, instead of nesting

I have a problem that I can not store more than one element in the same TAG, look at the XML: <ItemCardapio> <nCdItemCardapio>10</nCdItemCardapio> <nQtdeItemCardapio>2</nQtdeItemCardapio> <ObsProduc...
asked by 01.03.2014 / 01:22
1
answer

How to upload Dynamic Images in JSF?

What is the best strategy for uploading and using images in JSF? I do not want to use blob field in the database, so how do I solve the image storage folder problem, since the .war file is closed.     
asked by 29.01.2014 / 03:56
2
answers

Configure Jenkins to build build for each commit?

I have Jenkins properly installed and generating build every 30 minutes, but I'd like to build build with every commit in the svn repository. I tried to configure the option: Check the SCM periodically, but I did not succeed. Does anyone k...
asked by 14.01.2014 / 17:55
1
answer

Why put the .jsp file in the WEB-INF directory?

Taking Maven as an example, when started a new web project, the structure is the same / similar to this: Meu Projeto |- src |- main |- java |- resources |- webapp |- WEB-INF W...
asked by 02.04.2016 / 00:14
1
answer

How to create an application from a Maven file?

I was working with EJB and dealing with four simple Maven projects, a web project, a desktop (JSE Swing), a project (JSE) that had only the interface and lastly a web project (which I called Core ) that implemented this penultimate project that...
asked by 22.12.2015 / 17:09
1
answer

How to unify two CSS files

I'm doing a Spring MVC 4.2 project. In this project I have more than one CSS file and more than one JS . What I want is to make all CSSs files into a single ALL.css and that this file is minify . What I have been working on...
asked by 23.12.2015 / 00:03