Building J2EE Applications using JBOSS and ECLIPSE 3.0

Hi all
i am trying to deploy a J2EE application using JBOSS3.2.5 and Eclipse 3.0.
I have written the EJB bean, home, remote and a test JSP page. Can someone tell me the exact procedure...step by step ways to deploy the JBOSS server and run my application.
My package structure is
MyProject
ejb
client
Servlet.java
server
Bean.java
shared
home.java
remote.java
please tell the various jar files that i must include. Kindly give information about the directory structure, the xml file details and the WAR file generation
Thankz in advance
Arun :)

That is a lot of stuff! At a basic level, you can create an EAR file and put it in the JBoss auto-deployment directory. In the EAR file you should have a WAR file for the web component and a JAR file for the EJB component. And inside each archive there should be a valid deployment descriptor that contains configuration data for the component. When you start up JBoss, the application will be deployed and accessible via web browser, or there will be error messages written to the server log.

Similar Messages

  • JBoss and Eclipse Problem

    Hi @ all,
    i'm trying to learn J2EE technology with jboss and eclipse dev.kit.
    I use the Jboss/eclipse tutorial (http://prdownloads.sourceforge.net/jboss/Tutorial-1.3.0.pdf)
    but there are several problems with the ear-file.
    This error will be processed if I try to deploy the package to the jboss
    server:
    14:20:12,765 WARN [ServiceController] Ignoring request to stop nonexistent service: jboss.j2ee:service=EARDeployment,url='FiboApp.ear'
    14:20:12,765 WARN [ServiceController] Ignoring request to stop nonexistent service: null
    14:20:12,765 INFO [EJBDeployer] Undeploying: file:/C:/jboss-4.0.0/server/default/tmp/deploy/tmp3781FiboApp.ear-contents/FiboEJB.jar
    14:20:12,765 WARN [ServiceController] Ignoring request to stop nonexistent service: null
    14:20:12,765 INFO [EARDeployer] Undeploying J2EE application, destroy step: file:/C:/jboss-4.0.0/server/default/deploy/FiboApp.ear
    14:20:12,781 WARN [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:service=EARDeployment,url='FiboApp.ear'
    14:20:12,781 WARN [ServiceController] Ignoring request to remove nonexistent service: jboss.j2ee:service=EARDeployment,url='FiboApp.ear'
    14:20:12,843 WARN [ServiceController] Ignoring request to destroy nonexistent service: null
    14:20:12,843 WARN [ServiceController] Ignoring request to remove nonexistent service: null
    14:20:12,843 WARN [DeploymentInfo] Could not delete file:/C:/jboss-4.0.0/server/default/tmp/deploy/tmp3781FiboApp.ear restart will delete it
    14:20:37,906 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-4.0.0/server/default/deploy/FiboApp.ear
    14:20:37,984 INFO [EARDeployment] Registration is not done -> stop
    14:20:37,984 ERROR [MainDeployer] Could not initialise deployment: file:/C:/jboss-4.0.0/server/default/deploy/FiboApp.ear
    org.jboss.deployment.DeploymentException: Error in accessing application metadata: ; - nested throwable: (javax.management.InstanceAlreadyExistsException: jboss.j2ee:service=EARDeployment,url='FiboApp.ear' already registered.)
    at org.jboss.deployment.EARDeployer.init(EARDeployer.java:270)
    at org.jboss.deployment.MainDeployer.init(MainDeployer.java:799)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:736)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
    at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
    at $Proxy8.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)
    Caused by: javax.management.InstanceAlreadyExistsException: jboss.j2ee:service=EARDeployment,url='FiboApp.ear' already registered.
    at org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistry.java:755)
    at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
    at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1397)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1392)
    at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:359)
    at org.jboss.deployment.EARDeployer.init(EARDeployer.java:262)
    ... 21 more
    Can anybody help.
    Thx in advance.
    Greets from Germany
    Ben

    Hi, I ran into Sam problem. I have the Eclipse 3.1.0, JBOSS 4.0.1sp1, JBoss-IDE 1.3.0 running under JDK 1.5.0.02. It appers for sum resion that the jboss-web.xml is not getting the name of the �<ejb-ref-name></ejb-ref-name>�. if I manually add the name so it looks like this: �<ejb-ref-name>ejb/Fibo</ejb-ref-name>� the project deploys. I am new to this as well and am not shore what needs to be changed to fix this in the build. I am thinking it�s a problem in the way XDoclet parses the source for the META DATA.

  • Deploying J2ee application using JBOSS3.2.5 and Eclipse 3.0

    Hi all
    i am trying to deploy a J2EE application using JBOSS3.2.5 and Eclipse 3.0.
    I have written the EJB bean, home, remote and a test JSP page. Can someone tell me the exact procedure...step by step ways to deploy the JBOSS server and run my application.
    My package structure is
    MyProject
    ejb
    client
    Servlet.java
    server
    Bean.java
    shared
    home.java
    remote.java
    please tell the various jar files that i must include. Kindly give information about the directory structure, the xml file details and the WAR file generation.
    i googled this topic..but i got the results for eclipse 2.0....
    Thankz in advance
    Arun :)

    Don't cross-post:
    http://forum.java.sun.com/thread.jsp?thread=550678&forum=13&message=2689332
    http://forum.java.sun.com/thread.jsp?thread=550673&forum=31&message=2689289

  • Building a best practice web application using ColdFusion and Jave EE

    I've been tasked with rewriting a software using ColdFusion.  I cannot seem to find a lot of information on best practice development in ColdFusion.  I am an experience Java developer who has never used ColdFusion before.  I want to build this application using a synergy of ColdFusion and Java EE technologies.  Can someone recommend me a book that outlines how to developer in ColdFusion?  Ideally this book assumes the reader is an experienced developer with no exposure to ColdFusion.  Ideally the methods outlined in the book are still "best practice" methods.

    jaisheela wrote:
    Hello Friends,
    I am also in the same situation.
    I am a building a new web application using JSF and AJAX.
    Requirement is I need to use IBM version of DOJO and JSF but I need to develop the whole application using Eclipse 3.3,2 and Tomcat 5.5.
    With IBM version of DOJO and JSF, will Eclipse and Tomcat help to speed up the development or do you suggest me to go for Rational Application Developer and WebSphere Application Server.
    If I need to go with RAD and WAS, then I am new to RAD and WAS, is it easy to use RAD and WAS for this kind of application and implement web applicaiton fast.
    Any feedback will be great help.Those don't sound like requirements of the system to me. They sound more like someone wants to improve their CV/resume
    From what I've read recently, if it's just fast you want, look at Ruby on Rails

  • Buling a new Web Application using JSF and Ajax.

    Hello Group,
    I am a building a new web application using JSF and AJAX. Planning to use Myfaces Tomahawk, Dojo for Ajax, Hibernate, Spring,Eclipse IDE and Jetty Server.Can some one please suggest me will this be a right one for
    building complex UI and will it support for using the jsf features and would like to know any other free open
    source framework, ide, tools which support the best way for an agile project..?. There is restriction like i have to use java1.4

    jaisheela wrote:
    Hello Friends,
    I am also in the same situation.
    I am a building a new web application using JSF and AJAX.
    Requirement is I need to use IBM version of DOJO and JSF but I need to develop the whole application using Eclipse 3.3,2 and Tomcat 5.5.
    With IBM version of DOJO and JSF, will Eclipse and Tomcat help to speed up the development or do you suggest me to go for Rational Application Developer and WebSphere Application Server.
    If I need to go with RAD and WAS, then I am new to RAD and WAS, is it easy to use RAD and WAS for this kind of application and implement web applicaiton fast.
    Any feedback will be great help.Those don't sound like requirements of the system to me. They sound more like someone wants to improve their CV/resume
    From what I've read recently, if it's just fast you want, look at Ruby on Rails

  • Error 10 when building an application in LV8 and Report generation toolkit 1.1.1

    I am trying to build an application using LV8.0.1 and Report generation toolkit 1.1.1 and i get this error.
    Error 10 occurred at ABAPI Dist Copy Non-VI Files.vi -> ABAPI Dist Build LLB Image.vi -> ABAPI Copy Files and Apply Settings.vi -> EBEP_Invoke_Build_Engine.vi -> EBUIP_Build_Invoke.vi -> EBUIP_Build_Invoke.vi.ProxyCaller
    Any ideas?
    Scientia est potentia!

    Did you attempt to add the _wordsub.llb and _excelsub.llb files to the application as support files?  I believe in LabVIEW 8.0 instead of adding the entire LLBs you should just add the _Word Dynamic VIs.vi and _Excel Dynamic VIs.vi as dynamic VIs.  I think I've seen a similar post on the discussion forums in the past that recommended this.
    If this suggestion doesn't help, please reply, and attach a simple VI and .lvproj file demonstrating the problem so I can investigate further.
    Good luck,
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Building ADF  application Using Maven

    I have a requirement to build the Adf application using Maven.
    My JDeveloper version is 11.1.1.3 and I imported the Maven plugins.
    When I create the new Fusion application , pom.xml is getting created in model project but not in viewcontroller project. Any reason for that?
    Please help me to point to the right article and example to build Adf application using Maven?

    User,
    While you can build an ADF app using Maven, it's nowhere near easy or automated in terms of getting started. There are a few people who are doing it, but they have invested a lot of effort including:
    * loading the ADF libraries into their corporate repositories
    * re-structuring their ADF projects to match the Maven directory standard (or customizing their POMs)
    * Hand-building POMs for their ADF apps
    Most or all of the people that I know who are doing this are doing all of these things without the benefit of the Maven integration provided in JDeveloper. If you have a search of this forum and the [url https://groups.google.com/forum/?fromgroups#!forum/adf-methodology]ADF EMG, you can find plenty of discussions about this. There's no "step-by-step" guide that I know of, and it will definitely take you quite a bit of effort to get started. The Maven integration in JDeveloper is still in developer preview mode, and in my opinion, isn't ready for prime time - at least not with respect to ADF projects.
    John

  • Trouble deploying a J2EE application using the J2EE 6.20 Deploy Tool

    I am having trouble deploying a J2EE application using the J2EE 6.20 Deploy Tool.
    I successfully create the WAR/EAR files, I then select deploy and the deploy process gets to 100% before displaying an error message.
    Can anybody help?
    Please see Deploy Tool log entry:
    01:39 -  **********************************************************
    05/01/17 10:19:16 -  Applying user role management mappings.
    05/01/17 10:19:16 -  Start updating EAR-file...D:\SAP_J2EEngine6.20_Cluster\deploying\carmodeller\carmodeller.ear
    05/01/17 10:19:27 -  Temp files deleted...
    05/01/17 10:19:27 -  Ear-file updated successfully for 11375ms.
    05/01/17 10:19:27 -  Start deploying ...
    05/01/17 10:20:15 -  Ear-file uploaded to server for 47297ms.
    05/01/17 10:21:47 -  ERROR: ID90506: NOT Deployed. ERROR returned from deploy service :
                         com.inqmy.services.deploy.container.DeploymentException: Can't init application carmodeller. com.inqmy.services.servlets_jsp.server.WebApplicationException: ID17110: Error in starting application carmodeller.java.lang.NullPointerException
                              at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.deploy(ServletsAndJspImpl.java:482)
                              at com.inqmy.services.servlets_jsp.server.WebContainer.commitDeploy(WebContainer.java:256)
                              at com.inqmy.services.deploy.server.DeployServiceImpl.commit(DeployServiceImpl.java:2848)
                              at com.inqmy.services.deploy.server.DeployServiceImpl.deploy1(DeployServiceImpl.java:512)
                              at com.inqmy.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:140)
                              at com.inqmy.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:184)
                              at com.inqmy.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:157)
                              at com.inqmy.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:108)
                              at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
                              at com.inqmy.core.cluster.impl5.ParserRunner.run(ParserRunner.java:55)
                              at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
                              at java.security.AccessController.doPrivileged(Native Method)
                              at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:153)
    05/01/17 10:21:47 -  **********************************************************

    Hi, it looks like the app has trouble starting up:
    05/01/17 10:21:47 - ERROR: ID90506: NOT Deployed. ERROR returned from deploy service :
    com.inqmy.services.deploy.container.DeploymentException: Can't init application carmodeller. com.inqmy.services.servlets_jsp.server.WebApplicationException: ID17110: Error in starting application carmodeller.java.lang.NullPointerException
    Did you have any errors on the compile of the code?
    You also want to check if the app is deployed (if so you may want to remove it before re-deploying it)

  • I want to build android application using existing desktop dimension fla files. so for this I am resizing existing desktop dimension fla files to mobile dimension files but during resizing some files are resizing properly but most of the files the content

    problem definition:
    To build android application using existing desktop dimension fla fies , I am resizing that files to mobile dimension and publishing with air fo android 16  . In this process some fla's are not resizing properly I mean the content is not matching with stage
                      In one post I saw that by copying frames in movie clip we can adjust with stage . I did this and made an application but the swf's which are following the movieclip resized swf are going out of stage
    development tool : adobe flash professsional cc
    extension : air for android 16
    original file dimension: 800 * 600 px
    new dimension required is : 2650 * 1600 px ( to get full screen view)
                                           anyone please suggest me to solve this problem
    when I resized using copy frames in movie clip the output swf is coming with white screen . If I played with package it coming properly but the files which are following this are going out of stage
    Thanks&regards
    K.Niranjan

    problem definition:
    To build android application using existing desktop dimension fla fies , I am resizing that files to mobile dimension and publishing with air fo android 16  . In this process some fla's are not resizing properly I mean the content is not matching with stage
                      In one post I saw that by copying frames in movie clip we can adjust with stage . I did this and made an application but the swf's which are following the movieclip resized swf are going out of stage
    development tool : adobe flash professsional cc
    extension : air for android 16
    original file dimension: 800 * 600 px
    new dimension required is : 2650 * 1600 px ( to get full screen view)
                                           anyone please suggest me to solve this problem
    when I resized using copy frames in movie clip the output swf is coming with white screen . If I played with package it coming properly but the files which are following this are going out of stage
    Thanks&regards
    K.Niranjan

  • Building executables when using LV and MATRIXx

    Hi!
    With respect to Building executables when using LV and MATRIXx, I need clarification on following:
    1) Pre-requisites to use MATRIXx? We have LV 7.1 FDS with application builder.
    2) Licensing scheme? We would like to have MATRIX on 3 development stations.
    3) Can we build stand alone executables when using MATRIXx with LV?
    4) Do we need to purchase any addon to achieve (3) ?
    Thanks,
    Gurdas
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu

    Hello Gurdas,
    Before I answer your questions, I am curious to know what you have in mind for the stand alone executables you are interested in building. It may help me to know a little more detail about your plans. Depending on your application, some of these answers may or may not be applicable. In any case, here are answers to your questions:
    1) There are no prerequisites for using MATRIXx. LabVIEW is not required. However, with LabVIEW FDS, you do have an Xmath Script node located in the Functions > All Functions > Analyze > Mathematics > Formula palette. This node can be used to call Xmath scripts from LabVIEW.
    Note: To use the Xmath Script node successfully, you will want to install LabVIEW 7.1.1 Maintenance Release. Refer to KnowledgeBase 300A6NDT: How Can I Resolve MATLAB and Xmath Script Node Issues in LabVIEW?
    2) There are two licensing options for MATRIXx: node-locked and floating (concurrent). A node-locked license is restricted to a specific node and can be installed and used on that single computer. A floating (concurrent) license allows use of the product by a specified number of concurrent users on any computer on a local area network that includes a server running a single license manager. For more information, follow the link to the MATRIXx Price List from Products and Services: MATRIXx.
    3) There are two ways you might build executables when using MATRIXx and LabVIEW. One way uses a component of MATRIXx to automatically generate C code. AutoCode is a component of MATRIXx that allows the user to turn system models into C code. This C code can then be compiled into an EXE or DLL. If built into a DLL, LabVIEW can be used to call the DLL. A more thorough explanation of this is provided in Developer Zone Tutorial: Running MATRIXx SystemBuild Models in LabVIEW/LabVIEW Real-Time.
    Another way that may work is to build an executable from a LabVIEW VI that uses an Xmath Script Node. Any target machine running this executable would need to have Xmath and the LabVIEW Run-Time Engine installed.
    4) No other add-ons are needed for (3). Do be sure to refer to the note following the answer to (1).
    Regards,
    Eric M.

  • IllegalStateException in View (using JBOSS and ADF)

    Hi:
    I have a project using JBOSS and ADF. I have a form with the following code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <%@ page contentType="text/html"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af" %>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh" %>
    <f:view>
    <afh:html id="html">
    <afh:head title="FisaSystem">
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252" />
    <link rel="stylesheet" type="text/css" media="screen" title="screen" href="<%=request.getContextPath()%>/common/skins/fisaClassic/screen.css" />
    </afh:head>
    <afh:body id="body">
    <h:form id="form">
    <af:panelPage>
    <af:showOneTab id="showOneTab" position="above">
    <af:showDetailItem text="" id="showDetailItem">
    <af:panelForm id="panelForm">
    <af:inputText id="clasificationDescription" binding="#{clasificationManager.clasificationDescription}" required="true" />
    </af:panelForm>
    </af:showDetailItem>
    </af:showOneTab>
    <f:verbatim>
    <div class="actions">
    </f:verbatim>
    <af:panelButtonBar>
    <af:commandButton id="saveButton" text="#{internationalizationManager.saveButton}" action="#{clasificationManager.saveClasification}" />
    <af:commandButton id="cancelButton" text="#{internationalizationManager.cancelButton}" action="#{clasificationManager.cancelClasification}" immediate="true" />
    </af:panelButtonBar>
    <f:verbatim>
    </div>
    </f:verbatim>
    </af:panelPage>
    </h:form>
    </afh:body>
    </afh:html>
    </f:view>
    the backing bean for that form i like this:
    package com.fisa.efisa.document.manage.bean;
    import java.util.Collection;
    import oracle.adf.view.faces.component.UIXInput;
    import oracle.adf.view.faces.component.UIXTable;
    import oracle.adf.view.faces.context.AdfFacesContext;
    import oracle.adf.view.faces.event.LaunchEvent;
    import oracle.adf.view.faces.event.ReturnEvent;
    import com.fisa.efisa.document.dto.EFPClasification;
    import com.fisa.efisa.document.manage.common.CommonBackingBean;
    import com.fisa.efisa.process.document.persistence.TdmmClasification;
    import com.fisa.efisa.process.document.service.ServiceClasification;
    import com.fisa.efisa.process.document.service.delegate.ServiceClasificationDelegate;
    import com.fisa.efisa.process.engine.service.ServiceProcessEngine;
    import com.fisa.efisa.process.engine.service.delegate.ServiceProcessEngineDelegate;
    import com.fisa.util.Action;
    import com.fisa.util.message.FTransactionMessage;
    import com.fisa.util.message.Field;
    import com.fisa.util.message.FisaMessage;
    public class ClasificationBackingBean extends CommonBackingBean {
    private final String CLASIFICATION_IDENTIFIER = "clasification";
    ServiceClasification serviceClasification;
    ServiceProcessEngine serviceProcessEngine;
    UIXTable clasificationTable;
    UIXInput clasificationDescription = new UIXInput();
    public ClasificationBackingBean() {
    serviceClasification = new ServiceClasificationDelegate();
    serviceProcessEngine = new ServiceProcessEngineDelegate();
    public Collection getClasificationList() {
    return serviceClasification.findAllClasification(getFisaUserData());
    public String addClasification() {
    return ADD_OUTCOME;
    public String editClasification() {
    TdmmClasification row = (TdmmClasification) this.clasificationTable.getSelectedRowData();
    if (row != null)
    storeObjectInRequest(this.CLASIFICATION_IDENTIFIER, row.getClasificationId());
    else
    return null;
    return EDIT_OUTCOME;
    public String saveClasification() {
    return LIST_OUTCOME;
    public String deleteClasification() {
    if (this.clasificationTable.getSelectedRowData() != null)
    return CONFIRM_DELETE_KEY;
    return null;
    public void handleConfirmDeleteReturn(ReturnEvent event) {
    if (event.getReturnValue() != null) {
    AdfFacesContext.getCurrentInstance().addPartialTarget(this.clasificationTable);
    public void handleConfirmDeleteLaunch(LaunchEvent event) {
    Object row = this.clasificationTable.getSelectedRowData();
    if (row != null)
    event.getDialogParameters().put(DELETE_OBJECT_KEY, row);
    public String cancelClasification() {
    return LIST_OUTCOME;
    public UIXTable getClasificationTable() {
    return clasificationTable;
    public void setClasificationTable(UIXTable clasificationTable) {
    this.clasificationTable = clasificationTable;
    public UIXInput getClasificationDescription() {
    if (this.getClasificationFromRequest() != null)
    clasificationDescription.setValue(this.getClasificationFromRequest().getDescription());
    return clasificationDescription;
    public void setClasificationDescription(UIXInput clasificationDescription) {
    this.clasificationDescription = clasificationDescription;
    private EFPClasification getClasificationFromRequest() {
    Long rowId = null;
    if (retrieveObjectFromRequest(this.CLASIFICATION_IDENTIFIER) != null) {
    rowId = (Long) retrieveObjectFromRequest(this.CLASIFICATION_IDENTIFIER);
    FisaMessage fisaMessage = new FisaMessage();
    fisaMessage.setHeader(getMessageHeader());
    FTransactionMessage transactionMessage = new FTransactionMessage();
    transactionMessage.setFtmApplicationId(getApplicationId());
    transactionMessage.setFtmSourceSystemId(getSystemId());
    transactionMessage.setFtmSubSystemId(getSubsystemId());
    transactionMessage.setFtmBusinessTemplateId(getClasificationBtId());
    EFPClasification efpClasification = new EFPClasification(transactionMessage);
    Field field = new Field();
    field.setValue(rowId.toString());
    transactionMessage.addField(efpClasification.CLASIFICATION_ID, field);
    transactionMessage.setFtmActionId(Action.QUERY_LIVE);
    transactionMessage.setBtDataKey(rowId.toString());
    fisaMessage.getFTransactionMessages().put(getClasificationBtId(), transactionMessage);
    fisaMessage = this.serviceProcessEngine.executeMessage(fisaMessage);
    transactionMessage = fisaMessage.getFTransactionMessages().get(getClasificationBtId());
    efpClasification = new EFPClasification(transactionMessage);
    return efpClasification;
    return null;
    And this is my faces-config
    <?xml version="1.0"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    <!--param-value>server</param-value-->
    </context-param>
    <context-param>
    <param-name>
    oracle.adf.view.faces.USE_APPLICATION_VIEW_CACHE
    </param-name>
    <param-value>false</param-value>
    </context-param>
    <context-param>
    <param-name>
    oracle.adf.view.faces.ENABLE_DMS_METRICS
    </param-name>
    <param-value>false</param-value>
    </context-param>
    <context-param>
    <param-name>
    oracle.adf.view.faces.CHECK_FILE_MODIFICATION
    </param-name>
    <param-value>true</param-value>
    </context-param>
    <context-param>
    <param-name>
    oracle.adf.view.faces.CHANGE_PERSISTENCE
    </param-name>
    <param-value>session</param-value>
    </context-param>
    <filter>
    <filter-name>adfFaces</filter-name>
    <filter-class>
    oracle.adf.view.faces.webapp.AdfFacesFilter
    </filter-class>
    </filter>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <servlet-name>faces</servlet-name>
    </filter-mapping>
    <!-- Faces Servlet -->
    <servlet>
    <servlet-name>faces</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    </servlet>
    <!-- resource loader servlet -->
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>
    oracle.adf.view.faces.webapp.ResourceServlet
    </servlet-class>
    </servlet>
    <!-- Faces Servlet Mappings -->
    <servlet-mapping>
    <servlet-name>faces</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <!-- Welcome Files -->
    <welcome-file-list>
    <welcome-file>index.jspx</welcome-file>
    </welcome-file-list>
    <!-- ADF Faces Tag Library -->
    <taglib>
    <taglib-uri>http://xmlns.oracle.com/adf/faces</taglib-uri>
    <taglib-location>/WEB-INF/af.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>http://xmlns.oracle.com/adf/faces/html</taglib-uri>
    <taglib-location>/WEB-INF/afh.tld</taglib-location>
    </taglib>
    <!-- Faces Core Tag Library -->
    <taglib>
    <taglib-uri>http://java.sun.com/jsf/core</taglib-uri>
    <taglib-location>/WEB-INF/jsf_core.tld</taglib-location>
    </taglib>
    <!-- Faces Html Basic Tag Library -->
    <taglib>
    <taglib-uri>http://java.sun.com/jsf/html</taglib-uri>
    <taglib-location>/WEB-INF/html_basic.tld</taglib-location>
    </taglib>
    <login-config>
    <auth-method>BASIC</auth-method>
    </login-config>
    </web-app>
    As you see there's nothing really weird about this at all; if i use this page as displayed, i click on any of the buttons and everything works fine. But, if i add any other property to the clasificationDescription adf:inputText (a label for example), then it crashes with this error:
    java.lang.IllegalStateException: Invalid index
    oracle.adf.view.faces.bean.util.StateUtils.restoreKey(StateUtils.java:57)
    oracle.adf.view.faces.bean.util.StateUtils.restoreState(StateUtils.java:129)
    oracle.adf.view.faces.bean.util.AbstractPropertyMap.restoreState(AbstractPropertyMap.java:94)
    oracle.adf.view.faces.bean.FacesBeanImpl.restoreState(FacesBeanImpl.java:247)
    oracle.adf.view.faces.component.UIXComponentBase.restoreState(UIXComponentBase.java:761)
    oracle.adf.view.faces.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:749)
    oracle.adf.view.faces.component.TreeState.restoreState(TreeState.java:80)
    oracle.adf.view.faces.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:743)
    oracle.adf.view.faces.component.TreeState.restoreState(TreeState.java:80)
    oracle.adf.view.faces.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:743)
    oracle.adf.view.faces.component.TreeState.restoreState(TreeState.java:80)
    oracle.adf.view.faces.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:743)
    oracle.adf.view.faces.component.TreeState.restoreState(TreeState.java:80)
    oracle.adf.view.faces.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:743)
    oracle.adf.view.faces.component.TreeState.restoreState(TreeState.java:80)
    oracle.adf.view.faces.component.UIXComponentBase.processRestoreState(UIXComponentBase.java:743)
    javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1019)
    oracle.adfinternal.view.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:330)
    com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:228)
    oracle.adfinternal.view.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:232)
    com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:157)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
    oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    What can be happening ???

    This forum is only for questions directly related to the Sun Web Server. I think you should post your questions in the jboss forums. Alternative, you could use one of the sun products and then we would be able to help you ;)

  • Building java applications using UML

    Hi all
    I want to get experience for building java applications using UML.
    Pls advice what is the best text book should I purchase??
    thanks
    madura

    I do not use UML to auto-generate codes either. Take a look at Martin Fowler's bliki on some quite good views about UML: http://www.martinfowler.com/bliki/uml.html
    What I do use UML for:
    1. To visualise the system being built during the analysis and design phases - both to help improve understanding and to keep the stakeholders happy.
    2. To reverse-engineer existing code that's weak on both design documents and code design. Makes understanding the code easier.
    3. To highlight areas in existing code that might benefit from the application of design patterns.
    As for how UML converts to Java code, the main diagrams are the Class Diagram and the Interaction Diagrams - Collaboration and Sequence. These diagrams translate to code very well.
    Hth.

  • First J2EE Application using IDE in sdn provided example

    Hi guys!
    REQ! can any one suggest!
    First J2EE Application using SAP Netweaver Developer Studio provided by SDN is deployed succesfully to J2EE Engine but when I run the application JSP file in URL I am getting the Error as follows:
    500   Internal Server Error       SAP J2EE Engine/6.40 
      Application error occurred during the request processiong.
      Details:   com.sap.engine.services.servlets_jsp.server.exceptions.WebIOException:
      Error compiling [/CalculatorFdx300/CalculatorFdx300.jsp] in application [CalculatorFdx300].  The ID of this error is
    Exception id: [001125B854E9005F0000039E000013CC000414755D534457].
    with regards
    ganesh

    Hi Ganesh,
    It seems. It can be any one of the following
    1) Check the JDK Path
    2) Check the JNDI name
    3) Check the package structure
    4) Check the client file name and other files naming convention
    Hope it will resolve your problem
    cheers
    Jawahar Govindaraj

  • Using NetBeans and Eclipse to drag and drop forms, controls etc

    Hi, can you use NetBeans and Eclipse to drag and drop like say with C# in MS Visual Studio ?
    like forms and listboxes, textboxes etc ??

    And [this is a good place to start|http://java.sun.com/docs/books/tutorial/uiswing/index.html]
    db

  • Building jars using ant and eclipse

    Note: If this post could be in a more appropriate forum category could someone please tell me which one is better.
    Vexing issue:
    I am using ANT so that it will take care of which classes have been modified and therefore which jars need to be updated.
    I noticed one way ANT can work is to look at the timestamp of the class files and then build the necessary jars. This works fine EXCEPT that eclipse has a nasty habit of sometimes recompiling everything, even when I dont ask it to. It would seem to make more sense basing the recompilation on the source files, and whether they have been modified. So I set this up with my build.xml, ie
    <target name="compile" depends="init"
    description="compile the source " >
    <!-- Compile the java code from ${src} into ${build} -->
    <javac srcdir="${src}" destdir="${build}" fork="true"/>
         </target>
    Now suppose I go and change one of my source files, ANT recompiles that file and that all works great. However, suppose that file had in it, which many do,
    public static String EXAMPLE_VARIABLE = "example";
    This static variable is referenced in many classes, and yet ANT only recompiles the one file, and thus there begins an inconsistency!
    Is there any way to get around this? I would have expected ANT to recompile all the files that depend on the class with the static variable but it doesnt.
    Any help much appreciated.
    Cel

    You know, that's a good question. I would think JVMs at runtime could resolve static variables, like when it compiles classes using that static variable it puts a placeholder "Hey, here I am using XXX, at runtime, figure it out and give me the value right at the start..". But I think it works like you suggest in that a static value is compiled into every location that uses it. The only thing I can think of is provide a target for a build-all in your ant and have it rebuild all.
    I agree though that the javac compiler should be smarter in how it compiles classes. Anytime a class has certain attributes that may be compiled in to other classes, it should check and recompile any class that depends on the static value that has changed.

Maybe you are looking for

  • How can I display event notes on the relevant event in week/day view?

    Hi folks, I'm looking for a way to display the event notes on the actual event in week or day view. This will greatly help plan out my week (especially for repetitive events with custom notes for each occurrence). I can understand that Apple ommitted

  • ITunes no longer recognizes my 3rd gen or 5th gen Nano.

    Constant restore, uninstall/reinstall, etc.  Nothing working!  Windows 7 operating system.  All was fine before latest iTunes update Mon. 11/11.

  • PhotoShop Elements 9 Edit will not open.

    After opening 2 or 3 images in Elements 9 edit a dialog box will come up and say "Elements is already running but is not responding close the Elements process or restart your system". I do not see where I can close the running Elements process. I hav

  • Nano not playing out to monster fm modulator

    I have an ipod nano that will only play music through my car radio using a monster adaptor about 25% of the time. Tried the cord with my mom's ipod and it works every time I try it. No music plays even if I connect my ipod right after hers. The store

  • Is the EJB Finder Find By Where supported?

    I've been developing applications using JBOSS application server and it has Find-By-Where and Find-By-Where-Order-By as custom EJB finder options. This is where I can send in the where clause dynamically into the CMP layer and in the latter case orde