I am getting started with an Axis-based web service, written in Java, which will run on WebSphere.
My question is, can I just bundle this up as a web application like I usually do, as a WAR file inside of an EAR file, or do I need an AAR file, inside a WAR file, inside an EAR file?
Or are AAR files just for packaging up web service com...
OK, I'm stumped.
I have a Java tree that looks like a fairly typical Eclipse Java build:
myproject
src
com
example
test
// Java files in com.example.test here
bin
com
example
test
// Compiled class files will go here
Now I have a MyClass.properties file in myproject/src/com/...
I have a .jar file I'm putting together. I want to create a really really simple .properties file with configurable things like the user's name & other stuff, so that they can hand-edit rather than my having to include a GUI editor.
What I'd like to do is to be able to search, in this order:
a specified properties file (args[0])
MyApp...
I've spent the last several hours searching the web, and I can't figure this one out.
I want to include some javax.faces classes in a java package I'm working on.
Specifically:
import javax.faces.application.Application;
import javax.faces.context.FacesContext;
import javax.faces.el.VariableResolver;
I'm using eclipse 3.4
I know how ...
Hi, I am attempting to generate datamatrix barcodes from within itext. This works fine for most of my codes but not for some codes. One example is:
HEnSh0701003-2V1
This produces a non square barcode for some reason. When I use encoders from other companies (such as IDAutomation) I do get a valid square barcode.
Does anyone ha...
I have found may tutorials on loading an obj, but nothing on how to load it and use it with java, anyone have links to any useful tutorials?
...
I have a .java file and am compiling it using javac in ant. The .class file goes to output directory. A.class when ran, produces a.txt.
How to run the ant ´java´ task and where will the a.txt go, when ran? I mean which directory? Can I specify the direc. where the output files of java task should go?
...
I was wondering how expensive Java's string encoding conversion algorithms are, say, for a piece of text is in EBCDIC that needs to be converted to UTF-16, or for a similar conversion of a large file. Are there any benchmarks on the cost of this conversion? Benchmarks for multiple encodings would be better.
...
I'm trying to obtain details of an Eclipse user's structured selection in the Navigator Tree view. At present I have the following which is based on the org.eclipse.ui.popMenus extension point:
public void run(IAction action) {
Shell shell = new Shell();
ISelection selection = workbenchPart.getSite().getSelectionProvider().getSelecti...
Is there some library in Java to compress Png images like pngout, pngcrush, optipng which are written in C/C++?
In continuation to what Phil has commented below, what I meant was reducing the file size of the image generated by the ImageIO class in Java by removing information that is not needed, same as what pngout does. When I ran png...
I have a requirement where I have to fetch some records from the database and then I have to show 50 records per page on a JSP. The page will be having First, Previous, Next and Last buttons on the screen. Has anyone implemented similar functionality in struts or similar framework? also i dont want to get all records at once. please guid...
Suppose I have these packages in my application - foo.bar and foo.foobar, And I want to send all log4j log messages that are coming from foo.bar package to foobar.log file and the log messages coming from foo.foobar to foofoobar.log file, how should I configure the log4j.xml file?
...
Assuming this is a "singleton" implementation: Am I guaranteed that this will only call productCatalogLoader.load() once, and also that no nullpointers can happen ? Any way to make this simpler ?
private final ReentrantReadWriteLock lock = new ReentrantReadWriteLock();
private ProductCatalog productCatalog;
public ProductCatalog get(...
I want to create a list different types of class, which are all inheritance from the same superClass.
I am starting from an xsd file and I want to create the java classes and in run time load xml file that has a list nodes.
My problem is define the xsd that will create the java classes.
I am using JAXB 2.0 eclipse plugin.
In the end I ...
I am not really familiar with PHP, but I get the impression that it is like JavaScript (syntax-wise).
What are the benefits of a dynamically typed language, when compared to a strongly typed language like C# or Java, and how would this help in the context of web development? What would make a dynamically typed language so attractive? ...
i am very new to jsp... i am currently doing a project where i have to interface a card reader with my html page.
i got the card-reader code in a cpp and .h file. is there any way i can use these file with my jsp.. or do i have to recode it in java and include a .js file.
specifically, i have a text input for ID on my page. i need it t...
Hi,
I'm trying to make a paint editor with Java in which I have a toolbar with the objects that I would like to paste in the canvas. I'm using swing components to make the GUI, but when I looked for the way of making the canvas, I only found the class canvas from awt.
Is there any way to make something similar to canvas with swing? (f...
For example, given the string "2009/11/12" I want to get the regex ("\d{2}/d{2}/d{4}"), so I'll be able to match "2001/01/02" too.
Is there something that does that? Something similar? Any idea' as to how to do it?
...
Hi guys,
I am trying to use the eclipse-cs plugin on Rational Software Architect 7.0.0.4.
I recently uninstalled the older beta2 version and installed beta3. The plug-in itself works as was previously configured. But whenever I attempt to re-configure the check rules via Windows->Preferences->Checkstyle, I get the following error:
Pro...
I want to run a client/server application that is built in Java using socket connection. If I run both the server and the client program in same machine, the client and server communicate each other as expected. But on the other hand, if run the client program on some other system, I get an exception
java.net.ConnectException: Connectio...