Is there a tool that can determine .jar dependencies given a directory of .jar files and a separate directory of java source code? I need to generate Eclipse .classpath files based on an existing code base that doesn't have any dependencies defined.
To be more specific, I've been given a large codebase consisting of a dozen or so J2EE-s...
Hi,
I'm new and just developing on J2EE.
I am modifying an existing application (an OpenSource project).
I need to save an image on a client sent by the server, but I do not know how.
This activity must be done in a transparent manner without affecting the existing operation of the application.
From the tests done I get this error:
java...
Hey Guys,
I want to automate running of my J2EE Web application which has a few pages each with forms and a submit button going to the next form etc...
How do I automate running of this application? Which Tools are good out there ?
Thanks!
...
I have a simple problem: I want to configure an object differently based on whether the object is instantiated within a servlet container, or whether it is instantiated in a stand alone app.
The object is a database connection, and I care about setting query timeouts.
The first solution that I can come up with is:
if (insideServletCon...
Hi!
I am responsible to maintain one server running a J2EE web application. Jboss 4.0 is used as servlet container and the JVM is started with memory enough to run the application (I think):
if [ "x$JAVA_OPTS" = "x" ]; then
JAVA_OPTS="-server -Xms1500m -Xmx1500m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval...
Hi All,
we have a requirement to provide versioning(like version control) to the files uploaded to our application which is java/j2ee web based. We support files to upload/download to the application. Users frequently do the changes to the file by downloading from my appln and modify them, then upload back to the application. as of now ...
Hi, i am creating and Configuring the Struts for the first time, when I place the following Code in my jsp page
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http...
I am modifying existing java web application that was written long time ago, and it is written in the wrost possible way. It has business logic and sql statemens in JSP files.
Because of the certain constraint, I can not re-design the entire application. but I can implement better design in any new feature that I add.
can anybody sugge...
Hello,
I use weblogic 10.
Its provide an Oracle JDBC driver 10.2.0.2 (in the server/lib on weblogic home).
Actually someone at work put a long time ago a 10.2.0.3 driver in instance libext folder.
But in production we got a jdbc driver stack (nullpointer :O) and by reverse engineering it seems we are using driver 10.2.0.2.
We know th...
I've got a custom login module in an ear on jboss. The ear's META-INF has a jboss-app.xml which points at a login-service.xml which contains an mbean that points to a login-config.xml which defines the custom login module.
The jboss.xml in the ear's META-INF uses the same security-domain as that defined for the login module in login-con...
This is a follow-up to a question I posted a while back: "Can I use a single WAR in multiple environments?". I was able to create a single-war solution in Tomcat, but now we are migrating our app to JBoss 4.2 and I can't figure out how to set up global environment variables.
In Tomcat 6 this was pretty straightforward: I simply put t...
In my office we use exploded EAR's (and inside them exploded WAR directories) for our test environments, and then a packaged one for production. I've yet to find a good explanation of the reason behind this though. I understand it's easier from a deployment perspective to push out a single file during builds, but it prevents us from do...
Attended a 2 week Java EE course and learnt the concepts. Want to try in a simple project and wanted ideas on what that could be? PetStore or Small Business App are so boring... Anything interesting that can be done to learn the breadth but at the same time it not being a full fledged project?
...
I'm using IBM WebSphere as my servlet container. My application has several servlets and Java classes. My intent is to call one of those servlets directly from a Java class. Doing some research I figured out that is possible to use the RequestDispatcher interface to achieve this. But it is necessary to pass the objects ServletRequest and...
Env: JBoss, (h2, MySQl, postgres), JPA, Hibernate 3.3.x
@Id
@GeneratedValue(strategy = IDENTITY)
private Integer key;
Currently our primary keys are created using the above annotation. We expect to support a large number of users (~million users), what key should be used. Should it be Integer or Long or should I use the unsigned vers...
Hi all,
some days, without having done anything (changes, updates, upgrades), Eclipse gives me the following two errors:
FIRST-
Message: `**Problems occurred when invoking code from plug-in: "org.eclipse.wst.jsdt.ui".**`
Stack Trace:
`java.lang.NullPointerException
at org.eclipse.wst.jsdt.internal.compiler.lookup.ArrayBinding.get...
I want to implement Server PUSH in my J2EE application how can i ?
...
How to convert doc to pdf using java api. where document contains various formats such as tables in ms word. when converting to pdf using iText. where actual document looks different to converted pdf. please provide any api not an exe installed for converting . must be an open source
...
When I try to deploy my simple app I get the following error:
Bean : TestEJB
Method : public abstract S2KManager create() throws CreateException, RemoteException
Section: 7.10.6
Warning: The method return values in the home interface must be of valid types for RMI/IIOP.
First some technical information:
JBoss 3.2.1
JDK 1.4.2
EJB2
...
My application runs on IBM WebSphere 6.1 Network Deployment. The application have several JSP files and Java classes. Today each host have only one JVM instance but my intention is to start another instance on each host. How can I configure log4j to log to different files for each JVM instance in the same host? I thought of using variabl...