Deploying JNLP Application In WebSphere Application Server
Mar 11, 2014
I am new to work on JNLP program. I have created a SWING program, JNLP file when i deploy the ear file i am getting 404 error. Please find the steps in details.
1.Created a dynamic web project JWStartProject in eclipse
2.Create a HelloWorld.java class under default package.
import javax.swing.*;
public class HelloWorld extends JFrame {
private static final long serialVersionUID = 4968624166243565348L;
private JLabel label = new JLabel("Hello Java Web START!");
public HelloWorld() {
super("Jave Web Start Example");
this.setSize(350, 200);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE );
this.setLayout(null);
[Code] ....
Now I exported this project as JWStartProject.war contains following code.
Created Server in Websphere Admin console
Deployed this war file under the server and started.
I have added MIME types also.
I am unable to launch the application. I am getting 404 errors. May I know where I went wrong?
I am new to JMS and Websphere server and I am trying to access a JMS queue configured on Websphere Application Server 8 from my Java code. But I am getting the exception mentioned below:
Exception in thread "main" java.lang.NoClassDefFoundError: com.ibm.ws.naming.util.CommonHelpers at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(Unknown Source) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:230) at javax.naming.InitialContext.initializeDefaultInitCtx(InitialContext.java:313) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:343) at javax.naming.InitialContext.internalInit(InitialContext.java:281)
a new java executable file which does heavy processing (batch). Development hasn't really started yet and the design phase is just beginning. Now the client is asking us to give them the minimum server specs to be able to run our application..I'm thinking this can't be done without performance testing, which will be after development. Is there a better and faster way to be able to assess this?
I have an application developed in Jsf, hibernate eh-cache. i deployed it on jboss server and users are directly accessing jboss url on port 8080 in internal network. Now problem is, number of users for this application has been increased. This application have one page containing 20 records which gets fetched from cache on jsf page. I have used a4j:poller tag which refreshes this page via ajax call and updates it. Earlier this was working fine but nowadays number of users have been increased. Issue is i get nullpointer exception after some time once i logged in to application and user gets redirected to login page. If user re-logins he gets directed to same page number before logout. There is no reason of throwing null pointer exception and this application works fine in qualification environment. We checked everything,
1) session is still there on server. thing is user gets disconnected from it. 2) Network bandwidth seems to be okay. 3) we have used hibernate eh cache and serialized java classes.
how to troubleshoot and find root cause for this. Some people say that it is due to ajax calls from multiple users and ajax response it getting lost in between.
I would like to know how we can deploy one Web application on multiple server to share the work between them? My first thought is that we just deploy the same war file on different servers that connect to the same database. However, what will happen when a user enter something like [URL]? How can multiple servers share the same domain name and how the requests from different users are redirected to these different server?
Any example of client/server socket based application using Spring and Maven where application do the following
Client sends a request with a path to any file on the server „h Server reads the file and responds back with the content „h Client outputs the content to the console
I have developed a window based chat application for chatting, screen sharing, file sharing, video playing.
All are working well on my local network systems (eg. dynamic server ip is 192.168.1.122). But if i try to run on my server (e.g. static server ip 50.62.8.22) it is not get connected..,
I am trying to deploy an android application that connects to a java server. I am doing an apointments system, so the client asks for an apointments with a specific office/doctor. What i did, was to create a java server, using object for the offices, and via sockets it communicates with the android client.
The problem is that when i tried to use my (very demo still) app on my phone and sent it to some friends for testing, i coulnt find a way to have my server on the internet.
So I changed to (or trying to) servlet. But, how to do a client server application with servlets. All tutorials i have seen are more on website clients, but thats not what i need.
How is session maintained in the application server, internally what happens when the user has logged in ? We create a session and store the user details which will be stored in the session object in the server with a unique sessionID which will be validated when the same user login the system again? But how exactly the session is maintained in the Server internally?
At our company we run a third-party Java-based GUI application on one of our Linux server machine, displaying the application to our local Windows work stations using the Cygwin X Server.We noticed a few problems with a new version of this application and was able to narrow it down to the following conditions:
1. Java Swing application running on a UNIX host; 2. Java used is 1.6 (problem not noticed when using Java 1.5) 3. Displaying to Cygwin X server (I've heard other windows-based X servers have the same issue, but I don't have access to any others at this time).
If we run the application natively on Windows, I'm told if the application runs on the Linux host and displays natively to that machine's display there are no problems (although I'm not able to verify this myself).The problems are:
1. Any new frame/dialog is opened in the geographic center of the dual displays, rather than in the middle of one or the other; 2. Any attempt to drag the window to a different location on the display seems to work, but as soon as you let go of the drag, the window snaps back to the original location. This only happens the first time you try to move each window. 3. Drop-down controls (JComboBox, for example) just close back up as soon as you click on them. If you click and drag the mouse to attempt to make a selection, no selection can be made.
Are these known problems using 1.6 on UNIX displaying to Windows-based X Servers?
The only real problem is number 3. I expect that if I put more work into the window placement, I should be able to get past number 1. Number 2 is just a minor annoyance.The following is a simple Java Swing application which when run in the correct environment will exhibit the problems.
I want to develop an application for client server play the Video On Demand (VOD).i am new for working on video player. Which library will suitable for this and what methods have to fallow.
A getting started app is fine, need to understand of deploying a sample application to WebLogic server. Any particular configuration during WLS install?
convert or move standalone java thread application into Tomcat server container for accessing its JNDI services? Also is it possible to schedule this thread application in Tomcat server? is it possible to keep this app in tomcat as web application and schedule in window's scheduler.
I want to know the how to refresh the jsf application after doing something like Faceboook... i.e if i comment or post in my application so automatically the whole application have refresh.
A while ago, I developed an application in VB.net, and I'm trying to "convert" this application to Java. But this VB.net application uses some specific DLLs and I need to use them in my Java application. However, my knowledge in this respect are quite limited in manupulate DLLs on Java.
Up to this point, I can already load the DLL. I've read some documentation on how to use functions that are in the DLL; but I have some doubts. For example, how can I translate this piece of code to Java?
Java Code:
API = New MyDLL.Base With API .para1= "1" .para2= 2 .para3= True .para4= False
I am currently faced with a task of creating a web application. This application is meant to be accessed by an admin and also a customer. On the customer side the app should prompt the user to fill in an application for of sort and also allow the user to upload a CV to a database. The information entered by the customer will also be saved on the database. The admin should have the ability to look through all the candidates and their information and CV`s. He should also be allowed to search for candidates with specific key words...I am not a professional programmer but know the core of Java programming. I have a tiny bit of knowledge of MySql.
I am working on an app that would require an activation code in order to be used after being downloaded (user will get teh code from me) am using Java pro.
I want to monitor performance of web application, running in java JVM(Java version 1.5.0_22) using tomcat web server, for a given functionality want to find, methods and sql queries how much time taking for execution. i am looking for setting and free tools available.
Say I have a EAR file. Inside, it has a EJB jar, web war and app client jar file. The (enterprise) app client here is a desktop GUI calling the EJBs accordingly. Now if this EAR is deployed to some app server like JBoss or Glassfish, to access the app client, users will basically use java web start/ JNLP to run the client.
Given this is the case, I'm wondering if the effect is the same as separating the app client (not part of the EAR), have that EJB jar in its library path, and deploy the GUI app as a jar. Hence users not use web start. The only disadvantage I can think for separating the app client is if the EJBs get changed, the client's version will be outdated. But other than that, are there any justification for using an enterprise app client?
So say I write up a program like a dice roll game, which I see on the forums here. It's all written and good to go and when I hit Run it does what I want it to do, no errors..What do I do with those .class and .java files? Do I compile it somehow into an app I can put on the google play store? What is the NEXT STEP after the program is all written?