EJB / EE :: Access JMS Queue Configured On Websphere Application Server

Nov 13, 2014

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)

[code]...

View Replies


ADVERTISEMENT

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?

View Replies View Related

EJB / EE :: Websphere Application Server 8

May 22, 2014

i want to use EJB 3 in my WAS8 application but it doesn't work.First of all i created an remote-interface:

import javax.ejb.Remote;
@Remote
public interface EjbTestRemote {
public void doSth();
}

Then i created a session bean class:

import javax.ejb.Stateless;
@Stateless
public class EjbTest implements EjbTestRemote {

[code]....

But now i want to call the session bean from a normal (no servlet, no ejb) java class but i doesn't work (NamingNotFoundException):

try {
Context ctx = new InitialContext();
EjbTestRemote ejbTestLocal = (EjbTestRemote) ctx.lookup("java:comp/env/EjbTest");
ejbTestLocal.doSth();
} catch (NamingException e) {
e.printStackTrace();
}

View Replies View Related

Access OBIEE Server Through Java Application

Oct 31, 2014

Is there any option to access OBIEE server home page through java, without sending username and password through URL.

View Replies View Related

How To Access / Connect Remote Unix Server

Dec 14, 2014

a direct solution for connecting a remote Unix server through telnet connection from java application.

View Replies View Related

EJB / EE :: Unable To Access Session Deployed In Weblogic Server From JBOSS

Jan 13, 2009

I am currently trying to access an EJB Session deployed in a Weblogic server from JBOSS.

The client code looks like this :

Hashtable environment = new Hashtable();
environment.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
environment.put(Context.URL_PKG_PREFIXES, "weblogic.jndi.factories");
environment.put(Context.PROVIDER_URL, "t3://<ip>:<port>");
InitialContext context = new InitialContext(environment);
ServiceHome home = (ServiceHome)context.lookup("ejb/Service");

When I run this code from a standalone java program it executes ok, but when I try to run it from an application deployed in JBOSS, the line (5) which creates the InitialContext object throws this Exception :

java.lang.ThreadDeath
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1221)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
weblogic.rmi.internal.StubGenerator.getStubClass(StubGenerator.java:696)
weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:742)

[Code]....

In order to be able to use weblogic naming factory I put the archive weblogic-8.1.6.0.jar in jboss's /server/default/lib directory. But I think it has to do with JNDI conflicts between JBOSS and weblogic.

View Replies View Related

Keyboard Class Is Not Configured Properly

Jul 4, 2014

package com.vesron.primes;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;

[code]....

The parameter for the starting y is "fy" (Half of the screen). When I use the keys "z" and "x" it translates one pixel at a time left and right. That is good, but when I use the keys "a" and "s" it will double each time (good), but the starting y will drop significantly (bad). I tried manipulating the "x" and "fy" variables, but to no avail.

View Replies View Related

JavaFX 2.0 :: How To Access Application From Controller

Sep 25, 2014

I do Java for decades, but am a FXML beginner. Currently I do FXMLLoader.load(fxmlFile) in Application.start(), which is working well. My Application instance is creating a background thread in Application.init() which feeds several custom application properties with incoming data taken from a remote model (wrapping a sensor hardware). Some of my windows shall later be able to access those properties. So the question is: How can I inject my Application instance into the FXMLLoader-created controller instances auto-bound to the FXML-created Scene instances?

View Replies View Related

JSF :: How To Access Application Scoped Bean From A Scheduled Job

Mar 29, 2015

I am coming from a Seam 2 and ATG background, and working on re-writing an old Seam 2 application using JSF 2 on Tomcat 8. I've run into a snag:

I have an application scoped managed bean, let's call it EMail. It holds a collection of Email objects, and does some other stuff.

I have an IMAPClient, which is currently setup as an application scoped managed bean (mostly to simply configuration, etc...).

I need to call a method on the IMAPClient to go check email every X seconds (let's call it 60 seconds), and add any new email into the Email managed bean's collection of email. In Seam 2 this was easy with the @Asynchronous annotation. In JSF 2 I can't figure out how to do it. I've tried using Quartz, which will happily run my IMAPCheckJob every 60 seconds, but I am so far unable to figure out how the IMAPCheckJob can get access to either the IMAPClient or the EMail beans.. There's no dependency injection into the Quartz Job, and since it's not executing in a HTTP request flow, there's no Faces context available.

It seems like there has to be some way to allow for scheduling and still have access to the benefits of the Application scoped managed bean DI system...

Or do I need to give up and move to JBoss with EJBs and CDI instead of JSF beans?

View Replies View Related

JSP :: How To Access And Print Cash Register From Web Application

Jul 25, 2014

I have my own web application system now i want access a cash register machine from my web application to print receipt

View Replies View Related

Servlets :: Web Application Access - Mapping Of Localhost

Feb 14, 2014

We generally use [URL] ..... for running web applications.

What I want is to access my web app using something like this: [URL] ....

How to achieve this? Actually what i want to ask is that how URL like WWW.example.com is mapped to web applications? Assuming that i am using tomcat server.

View Replies View Related

Obtain Server Specifications Based On Application

Jun 19, 2014

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?

View Replies View Related

Application Disconnects From Session In Production Server

Jun 20, 2014

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.

View Replies View Related

Servlets :: How To Deploy One Web Application On Multiple Server

Mar 14, 2014

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?

View Replies View Related

Client / Server Socket Based Application

Sep 16, 2014

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 am trying to follow this [URL] ....
 
I am using java 6

View Replies View Related

Chat Application Working On Dynamic IP But Not On Static (server) IP

Apr 25, 2014

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..,

View Replies View Related

Deploy Android Application That Connects To Java Server

Aug 25, 2014

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.

View Replies View Related

Java Servlet :: How Is Session Maintained In Application Server

Aug 3, 2012

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?

View Replies View Related

Swing/AWT/SWT :: Running Application Using Java 1.6 And Windows-based X Server

Apr 15, 2011

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.

import java.awt.EventQueue;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

[code]....

View Replies View Related

Develop Application For Client Server Play Video On Demand

Feb 27, 2014

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.

View Replies View Related

Enterprise JavaBeans :: Deploy Sample Application To WebLogic Server

Jul 5, 2014

Deploy sample J2EE app to WebLogic server

A getting started app is fine, need to understand of deploying a sample application to WebLogic server. Any particular configuration during WLS install?

View Replies View Related

Authenticate Client Java Application Using ADFS Enabled Sharepoint Server

Feb 21, 2014

I need to authenticate my client java application using ADFS enabled Sharepoint server.

View Replies View Related

EJB / EE :: CDI Error For Interceptor On Websphere 8.5

Oct 15, 2014

I have just enabled CDI on Websphere 8.5.5 and added interceptors

In beans.xml file

<?xml version="1.0"?>
<beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/
XMLSchema-instance"
xsi:schemeLocation="http://java.sun.com/xml/ns/javaee http://
java.sun.com/xml/ns/javaee/beans_1_0.xsd">
<interceptors>
<class>com.example.jaxrs.SecurityChecked</class>
</interceptors>
</beans>

[code].....

When i deploy EAR, i get below error.

WebContainerL I WebContainerLifecycle startApplication OpenWebBeans Container is starting...

[10/15/14 14:53:15:259 EDT] 00000067 BeansDeployer E BeansDeployer deploy org.apache.webbeans.exception.WebBeansConfigurationException: Given class : interface com.example.jaxrs.SecurityChecked is not a interceptor class

what would be the cause of this error?

View Replies View Related

EJB / EE :: Gateway Timeout After 5 Minutes Websphere 8.0

Mar 10, 2014

I have a web application where the server has to write the excel document to the output stream.It takes more than 5 minutes for the server to write it.After 5 minutes i get a '504 gateway timeout' error code. I have tried setting the timeout values in the web container in Admin Console.Still the same problem.I followed this link.

[URL] ....

I even tried setting the ConnectionKeepAliveTimeout and ConnectionIOTimeOut values. But still didn't work. How do i increase the timeout value?

View Replies View Related

Web Services :: GregorianCalendar Object Passed As Null In Request - JAX-WS On Websphere

Jan 20, 2015

I created the WSDL first in RSA and then created the java bean skelaton from the WSDL. There are a couple of dateTime fields in the WSDL that are created as GregorianCalendar objects.

When I test with SOAPui and the date fields are passed correctly, everything works great. But when there is an invalid date format or anything else in the SOAP request, instead of returning a Conversion exception or some other validation exception, the field is passed as a null to the request object in the SOAP IMPL. Should't this return an exception?

Sample requests inputs:
<endTimeStamp>2014-01-28T01:30:14.474Z</endTimeStamp> - Date
<endTimeStamp>06-FEB-14 01.51.00.000000000 AM</endTimeStamp> - Null
<endTimeStamp>Any other string be it a date or not.</endTimeStamp> - Null

[Code].....

View Replies View Related

JSF :: XHTML On One Server Can Talk To Managed-bean On Other Server (different Machine)?

Jul 27, 2014

I am developing a web application using JSF-2.0 on weblogic 10.3.6. I am using Facelets as VDL. I have 5 different machine. They are different according to their OS and their geographical location. On my first xhtml page server (machine) is decided. Then on next page file upload and rest of processing takes place. My restriction is that SSO configuration can be done on only one machine.

So I am restricted to using xhtml files from only my primary server where SSO configuration is done. But I have to connect to servlets or managed-bean of different machine as requests are machine specific and file needs to be uploaded to those machines for processing. So I cannot use redirectUrl as I need to be only on one machine. Is it possible that xhtml on one server can talk to managed-bean on other server(different machine)?.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved