Setting a new EJB + JSF development environment

Dear friends,
nowadays me and some friends are dealing with the task of define the a Java development environment for a big enterprise...
After some discussion and also evaluating the available machinery (a Z/os mainframe, a DB2 database and some oter minor servers...) - we decided to use EJB + JSF/Servlets.
The JSF 4.0/Servlets support web requests while the Mainframe bundle the business components (EJB 2.1).
Is that correct?
have you some advices about our first decisions ?
the development tools will be also discussed but we are pending to Eclipse WTP and JBoss for local tests.. and also MAVEN and ANT to integrate all this bunch of technologies....
do you have some tip about plugins or frameworks that could help us to design a confortable and productive office ?
best regards,
Felipe Ga�cho

Hi Louis,
Thanks for the swift reply and for the insight into how Jdeveloper initialisation operates. I have since added the "ojaudit -profilehelp" to the setup scripts so that the system folder is correctly initialised. However, it is still not helping with my problem :(
The preferences.xml file is not getting created as part of the call. It creates quite a few other files, but not preferences.xml
$ ojaudit -profilehelp
Oracle JDeveloper Audit 11.1.1.4.0 (5923)
Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
ADE version extension, using view: noshea_mos_test_view
Defined profiles:
Code Assist Rules
All Metrics
Compile Rules
All Rules
Javadoc Rules
Audit Rules
$ pwd
/system11.1.1.4.37.59.23
$ cd o.jdeveloper
$ ls
1.6.0_18-rev.jdk Default.kdf Eclipse.kdf applications.xml
Brief.kdf DefaultWorkspace Emacs.kdf audit
Classic.kdf Default_macosx.kdf VisualCPP.kdf ide.properties
$
I tried copying in a pre-created file, but i still see the same exception as before.
At the moment, i am doing pretty much what the other team are doing in the make file :
export JDEV_USER_DIR ; $(T_WORK)/jdevshiphome/jdeveloper/jdev/bin/ojaudit -profilehelp
$(CP) $(NDE_PRODUCT_ROOT)/setup/preferences.xml $$PREF_FILE
$(CHMOD) +w $$PREF_FILE;\
Do you know how they generated the preferences.xml that they pick up from the setup directory? Maybe this is where im going wrong.
The steps I follow to generate mine are:
- Install Jdeveloper
- Open jdeveloper, and use my audit profile as default.
- close jdeveloper.
- Copy the generated preferences.xml into my setup scripts.
Then as part of the installation process
- Install jdeveloper (using a script).
- Run ojaudit -profilehelp.
- copy the preferences.xml file into the o.jdeveloper directory.
- Start Jdeveloper.
Do I need to make some changes to this preferences.xml to somehow make it more generic before it can be reused.
Thanks,

Similar Messages

  • Setting up the development environment

    hi,
    can anybody suggest the best way to set up the weblogic server
    development environment.
    we are a group of 5 EJB developers working on weblogic 7.0.
    (evaluation version)
    each one is developing ejbs which has to interact with other
    developer's beans.
    each one has installed the server on their own m/c. for developing and
    testing the beans.
    Once done, integration of the ejbs is done on another server and
    tested.
    should we use a single server for development? but that may lead to
    shutdown/ restart of the server frequently during testing and affect
    the other developer's work.
    anybody please suggest a better way.
    thanks in advance.
    anil

    On Tue, 05 Nov 2002 21:55:11 +0000, anil wrote:
    hi,
    can anybody suggest the best way to set up the weblogic server
    development environment.
    we are a group of 5 EJB developers working on weblogic 7.0.
    (evaluation version)
    each one is developing ejbs which has to interact with other
    developer's beans.
    each one has installed the server on their own m/c. for developing and
    testing the beans.
    Once done, integration of the ejbs is done on another server and
    tested.
    should we use a single server for development? but that may lead to
    shutdown/ restart of the server frequently during testing and affect
    the other developer's work.
    anybody please suggest a better way.
    thanks in advance.
    anilYour milleage may vary from others, here we had this environment setup for
    a 7 people developing WLS applications:
    - Single server for development (Sun Solaris box)
    - using remote telnet from Windows workstation/linux workstation
    - create a source code repository (e.g. CVS) for source code control and
    user workspace
    - create standard deployment descriptor with modular directory structures
    - system admin only allowed to startup and shutdown server
    - server running in "Development Mode" for hotdeploy and avoid shutdown
    and restart.
    Thank you,
    Neo Gigs
    "Follow the white rabbit..."

  • Development environment for SharePoint 2013

    Hi,
    We have requirement for one of the project. Team size would be approximately 30 resources. Development would be entirely for SharePoint 2013 Intranet solution. this will be OOTB Intranet application. We will be developing InfoPath forms and Nintex Workflows.
    For such requirement we would like to setup local development environment by using either Virtual Machines.
    Can anyone help me to identify that how many VM's would be required for the same? How many simultaneous users can use and work at a time? What other things I need to consider for infrastructure? How can i suggest the best possible solution for this.
    Thanks in advance.
    Abhijeet Khopade

    Hi,
    According to your description, my understanding is that you want to set up the environment for SharePoint Development.
    Here is a detailed article about configuring development environment:
    Setting up a SharePoint 2013 Development Environment
    For VM count, it depends on your project development requirements, for VM license and management ,if you are using Hyper-V, I suggest you can create posts in Hyper-V forum:
    Hyper-V forum
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • SAPUI5 Development Environment Installation Issues

    Hi
    I am new to this development environment and am experiencing problems installing the Eclipse environment, the way I understand it once I have installed Eclipse I need to install UI5 Team and UI5 Tools  packages, I did manage to install the UI5 tools with out to many issues but the UI5 Team will not install and appears to be missing certain components that I have not been able to find. The message I get is below;
    Cannot complete the install because one or more required items could not be found.
    Software being installed: SAPUI5 ABAP Repository Team Provider 1.6.5 (com.sap.ide.ui5.team.feature.external.feature.group 1.6.5)
    Missing requirement: SAPUI5 ABAP Repository Team Provider 1.6.5 (com.sap.ide.ui5.team.feature.external.feature.group 1.6.5) requires 'com.sap.adt.fwk.ci.feature.group 0.20.1' but it could not be found.
    Could somebody point me in the direction where I can find a step by step detailed install for Eclipse and all components needed.
    Thanks

    please have a look at this document
    How to install a basic development environment for SAPUI5
    or
    follow Installation process for SAP UI5 Tools from
    SAPUI5 Tools - User Interface Add-On for SAP NetWeaver - SAP Library

  • WebLogic Event Server Eclipse Development Environment now AVAILABLE

    The new Eclipse-based development environment for the WebLogic Event Server is now available.
    These new developer capabilities will simplify and accelerate the creation, deployment and debugging of EDA application for the new Java container.
    [url http://commerce.bea.com/showproduct.jsp?family=WLEVS&major=2.0&minor=-1]

    When starting the event server from the Eclipse server view, I get the following error...
    <Aug 14, 2007 3:58:55 PM EDT> <Critical> <BootBundle> <BEA-1004004> <The system could not find the default security providers due to "null". The system will exit.>
    Am I possibly just missing a configuration value?
    thanks!
    Mike

  • Setting up Oracle DB 11G in a development environment

    Hi
    I need to setup a new development environment with Oracle Database 11g and Oracle Apps Server 10G Forms and Reports.
    Currently we are running a live system (using Microsoft Virtual PC) on a domain and the virtual servers are joined to the domain.
    Where I want to get to with the new development environment is to be able to eventually move these new virtual servers to a completely new domain.
    What would be the best way to set this up to minimize the amount of work when setting up the database and apps server with the assumption that I will want to migrate the virtual servers to a new domain in the future. Would it be better to set up a basic workgroup and do the installation of both virtual servers in a workgroup environment?
    Also besides having security enhancements is there any advantage of having Oracle installed on a server versus installing on a Windows XP box?
    Many thanks.
    Spencer

    İf you first try to create db you get above errors, then you select "Create new objects in schema" option drop&create process starts.
    Result :
    TESTTYPEıD_TRG, CUSTOMOPTıONıD_TRG , ıSSUEVERSİONTYPEıD_TRG triggers are dropped and but not created again. ETESTPAGEID_TRG, TESTCASEATTACHMENTID_TRG, ATTCHSTDATA_TRG are newly created instead
    As I mentioned above after creation of ATTCHSTDATA_TRG, it throws an error and process stop. In additon, due to this error, all the dropped views are not created again.
    All my problem is newly created triggers an couldnt created views I suppose.
    Please advice
    thank you

  • ISupplier - Setting up the Development Environment with JDeveloper 9.0.3

    Hi friends,
    Can you please tell me the steps involved in setting up the development environment for iSupplier Module with JDeveloper in my PC.
    Please give me the details about what are the files to be downloaded from Apps, folder structure for development environment etc...
    Gurus please reply ASAP.
    Thanks,
    San

    You should better pick the class files from the JAVA_TOP appropraite to that product and add it to either myclasses in your project in jdev or add it to the classpath.
    Once you have these required files then you can launch the pages by either using a test.jsp or use the xml files directly if you know what parameters to pass. I would suggest you to use a test.jsp and launch the first page in the flow which launches from the menu - function by picking it's web_html_call.

  • Development environment set up

    Hi,
      I just want to set up a development environment for ISA and was going through the Dev and Extension Guide. I have the following questions that I need help with:
    a) What version of Developer workplace is required? Can I use the latest or have to stick with 2004s only for ISA development? I see there are two more later versions NW 7.0  SR3 Developer Workplace and NW 7.0 EHP1 SR1 Developer Workplace.
    b) Do I need to have NWDI? I only intend to make changes on my laptop and test it. The server version will remain AS-IS.
    Any inputs are greatly appreciated.
    Thanks,
    Ken

    Thanks for you answers. I am trying to install the developer workplace on Windows 7 (64 bit OS) with SQL server 2008.
    I get the following error
    Running msiexec failed with return code 1603: Fatal error during installation.
    Commandline was msiexec.exe /norestart /L sapmmcX86u.log /i sapmmcX86u.msi /qn
    I check some sdn posts on this error but the solutions refer to updating MSI installer on Windows XP. no solution to windows 7
    Any ideas...?
    Regards,
    Reid

  • Correctly setting up a C++ development environment with clang++

    I'm going to reinstall Arch x64 soon, as the current installation was not done properly, and I have some doubts on how I should set up my development environment correctly.
    My compiler of choice is clang++ 3.4 SVN and my IDE of choice is QTCreator git.
    I currently get and install those manually, but I may use the AUR in my next Arch installation.
    Anyway, the issue is that QTCreator and other applications use /usr/bin/c++ by default, which is g++.
    To solve (horribly) the issue, I changed my /usr/bin/c++ to an executable bash script that fowards the arguments to clang++.
    This lead to issues such as warnings and errors not being catched by the IDE.
    My question is: what is the correct way to set up a clang++ development environment?
    How can I set clang++ as the default compiler for everything except AUR packages?
    If you use clang++ as your main compiler, how did you solve this issue?

    The canonical method of setting your (C++) compiler is to set the CXX environment variable.
    Searching Google for "qtcreator compiler" yields things like: https://qt-project.org/doc/qtcreator-2. … hains.html

  • Setting Up Shared Development Environment

    Is there any diagrams, white papers, guides or best practices on setting up the J-Developer and connecting to shared Services and database? The Developer guide (E10148.pdf) does not really cover what the standards is or the overall infrastructure of the JDeveloper and setting up a Shared Developer enviroment.
    I looking for something like http://docs.oracle.com/cd/E25178_01/fusionapps.1111/e15524/gs_install_e.htm but for (11.1.1.6.0) version webcenter.
    I basically looking for something to help me get our Shared Development Environment setup with Jdeveloper.

    The issue is connecting the Jdeveloper to the WebCenter DS and Activity DS schemas. In the Development guide it says I need to connect to these schemas to be able to utilize several of the WebCenter Services, ( http://docs.oracle.com/cd/E21764_01/webcenter.1111/e10148/jpsdg_svc_intro.htm#BHCDJHAI - 7.2.2 Setting Up a Database Connection
    We are trying to set up the connection to our shared development environment database. Our database group is concerned with giving developers access to these schemas. They are concerned that JDeveloper will changes or modify the schema and cause the database to fail. They created a account with read only access but we are not sure it this will work.
    I been trying to find anything in the documentation to find what access JDeveloper needs to the WebCenter DS and Activity DS schemas and if JDeveloper can modify these schema in any way.
    Additionally try to find anything on the best practices on connecting to a shared database and setting up a Development environment and its connection to Jdeveloper .

  • Setting up development environment with several projects

    We struggle with Workshop when having a large workshop application. One way of getting out of this issue was to use several deployments and to use WSRP as a mechanism to get resources from several deployed portlet applications. Performance isn't an issue for our deployment.
    This setup might help us with having smaller Workshop applications and making the development environment more efficient, but we see some issues with this.
    - Framework package
    How should we handle the framework part with CSS files. Duplicating these framework files is not a good solution since some developers most certainly will forget to update all framework files when editing them.
    - Portal Administration
    Can we just drop the portal administration web app in the most of the workshop application?
    - Data project
    We use a custom UUP. How should this be handled when splitting the workshop application into several smaller applications?
    Trond Andersen, Invenia AS, http://www.invenia.no

    I used this for a little different purpose; we wanted to generate the whole development environment at one mouse click (formsweb.cfg, reports server etc.); as we used ANT for creating the svn local working copy for each developer we used ANT for this. but you can also use perl or bash :D.
    I'd create one template, then loop through all directorys and append the configs to a temp file
    /var
         /you
         /not_you=> create one config section named as the folder in the temp file basing on your template.
    in your real formsweb.cfg you might append a line like
    # THE DEVELOPER CONFIGS STARTS HERE
    after that you locate your config-entries.
    when the temp formsweb.cfg is ready, simply delete everything after
    # THE DEVELOPER CONFIGS STARTS HERE
    and append the configs from the temp file.
    That's the way I'd do this ;)
    regards

  • New database setup/configuration in development environment- 10g ,OpenSuse

    We have a db in prod environment with following info and we required to setup a development database which should similar to that of prod db.
    prod db info:
    DB version: 10.2.0.4.0 - 64bit
    OS version: SUSE SLES 10
    Size of DB: 1676 GB
    configuration is RAC
    we have very limited access to prod db and don't know exactly how many instances are configured in cluster/ RAC.
    Can you please suggest best configuration that needs to be done on development system, how many days work and etc. .
    1. would freely downloaded oracle software able to accomodate this?
    2. Is single instance db is enough to hold huge size db as there will be less number of user connections.
    4. WHAT are all the configuration settings (disk space, ram size, etc) would you suggest to me to have on development environment.
    we are planing to import prod dumps via either imp or impdp.. any other method you suggest us to do so..
    no link between prod and development systems.
    and if any other info please share and help me out.
    G R E A T T H A N K Y O U IN ADVANCE.

    knowledgespring wrote:
    We have a db in prod environment with following info and we required to setup a development database which should similar to that of prod db.
    prod db info:
    DB version: 10.2.0.4.0 - 64bit
    OS version: SUSE SLES 10
    Size of DB: 1676 GB
    configuration is RAC
    we have very limited access to prod db and don't know exactly how many instances are configured in cluster/ RAC.
    Can you please suggest best configuration that needs to be done on development system, how many days work and etc. .How many days work? That is dependant on far more factors than anyone here can guess.
    1. would freely downloaded oracle software able to accomodate this?The freely downloadable software is the same as the base level of the purchased software. But you need to be aware of license restrictions. Just because it is a "test" system doesn't mean you don't need a purchased license. And without a support contract, you do not get access to patches.
    2. Is single instance db is enough to hold huge size db as there will be less number of user connections.Multiple instances (RAC) have nothing to do with the size of the db.
    4. WHAT are all the configuration settings (disk space, ram size, etc) would you suggest to me to have on development environment.This is totally dependant on local factors. "Test", "development" or "production" have no bearing on any of these factors.
    >
    we are planing to import prod dumps via either imp or impdp.. any other method you suggest us to do so..
    no link between prod and development systems.
    No link at all? How do you plan to get the dump files from the prod server to the dev server?
    and if any other info please share and help me out.
    G R E A T T H A N K Y O U IN ADVANCE.

  • Eclipse as a development environment with Jakarta Tomcat

    Hello:
    I am setting up the new development environment for my application (project). Below are the components involved::
    �     Eclipse 3.1
    �     myEclipse - EnterpriseWorkbenchInstaller_4.0GA_E3.1
    �     jakarta-tomcat-5.0.28 (Application Server)
    �     Sysdeo Eclipse Tomcat Launcher plugin - tomcatPluginV31beta
    �     SDK 1.4.2_08
    �     Microsoft XP sp2 operating system
    I have no issue with creation of project structure in eclipse IDE, compilation, and deployment, but there are some exception upon running the application.
    My project folder structure as follows:
    MyApplication/
    src/
    Conf/
    Web/
    classes
    taglib
    lib
    web.xml
    �     my application has few dependent projects, therefore I copied all the dependent projects final compiled classes (jars) to �lib� folder.
    �     I set all necessary classpath according to tomcat documentation.
    �     I created MyApplication.xml file under D:\jakarta-tomcat-5.0.28\conf\Catalina\localhost\ folder with the below context
    <Context path="/MyApplication " docBase="D:/xx/xxx/dev/src/ MyApplication/web" debug="0" reloadable="true" />
    �     I don�t get any exception during compilation and deployment process.
    �     I would greatly appreciate if you could give me a tips!!!!!!!!!!!!!!!!!!!!!!
    Error as follows:
    2005-10-10 17:31:45 StandardContext[balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    2005-10-10 17:31:47 StandardContext[jsp-examples]ContextListener: contextInitialized()
    2005-10-10 17:31:47 StandardContext[jsp-examples]SessionListener: contextInitialized()
    2005-10-10 17:31:47 StandardContext[servlets-examples]ContextListener: contextInitialized()
    2005-10-10 17:31:47 StandardContext[servlets-examples]SessionListener: contextInitialized()
    2005-10-10 17:32:27 StandardContext[manager]HTMLManager: init: Associated with Deployer 'localhost'
    2005-10-10 17:32:27 StandardContext[manager]HTMLManager: init: Global resources are available
    2005-10-10 17:32:27 StandardContext[manager]HTMLManager: list: Listing contexts for virtual host 'localhost'
    2005-10-10 17:32:35 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
         at org.apache.coyote.tomcat5.CoyoteResponse.getWriter(CoyoteResponse.java:599)
         at org.apache.coyote.tomcat5.CoyoteResponseFacade.getWriter(CoyoteResponseFacade.java:163)
         at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:122)
         at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:115)
         at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:190)
         at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:115)
         at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:75)
         at org.apache.jsp.default_jsp._jspService(default_jsp.java:101)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)
    path setting as follows:
    %JAVA_HOME%\bin;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\Borland\AppServer\bin;C:\Program Files\CA\PEC\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\system32\nls;%SystemRoot%\system32\nls\ENGLISH;C:\Program Files\Attachmate\E!E2K\;C:\Program Files\CA\AllFusion Harvest Change Manager;D:\jwsdp-1.1\jaxb-1.0\bin;D:\jwsdp-1.1\jwsdp-shared\bin;C:\Borland\classes12.zip;C:\Program Files\UltraEdit;D:\jakarta-tomcat-5.0.28\webapps\cst\WEB-INF\classes;D:\EPS\EB_CST_v3.7.2\dev\src\cst;%PATH%
    Classpath setting as follows:
    .;%third_pty%\xerces.jar;D:\EPS\EB_CST_v3.7.2\dev\src\cst;D:\jakarta-tomcat-5.0.28\webapps\cst;D:\jakarta-tomcat-5.0.28\common\lib\servlet-api.jar;D:\jakarta-tomcat-5.0.28\common\lib\jsp-api.jar;D:\jwsdp-1.1\jaxb-1.0\lib\jaxb-api.jar;D:\jwsdp-1.1\jaxb-1.0\lib\jaxb-ri.jar;%third_pty%\ant.jar;D:\jwsdp-1.1\jaxp-1.2.2\lib\endorsed\dom.jar;D:\jwsdp-1.1\jwsdp-shared\lib\jax-qname.jar;D:\jwsdp-1.1\jaxb-1.0\lib\jaxb-libs.jar;D:\jwsdp-1.1\jaxb-1.0\lib\jaxb-xjc.jar;D:\jwsdp-1.1\jaxp-1.2.2\lib\jaxp-api.jar;D:\jwsdp-1.1\jaxp-1.2.2\lib\endorsed\sax.jar;D:\jwsdp-1.1\jaxp-1.2.2\lib\endorsed\xercesImpl.jar;%third_pty%\activation.jar;%third_pty%\ant-optional.jar;%third_pty%\j2ee.jar;%third_pty%\jakarta-regexp.jar;%third_pty%\jaxp.jar;%third_pty%\jcert.jar;%third_pty%\jnet.jar;%third_pty%\jsse.jar;%third_pty%\xalan.jar;C:\MSJDBSLib\msbase.jar;C:\MSJDBSLib\mssqlserver.jar;C:\MSJDBSLib\msutil.jar;
    Other IDE setting:
    As per tomcat documentation.

    Hello:
    I overcame the above issue by changing index.html to index.jsp, but now i am facing another issue as shown below:
    On top of the above change i too included j2ee.jar (from websphere) in the classpath to overcome the below issue, but even then i am getting the same error.
    Error as follows:
    javax.servlet.ServletException: Error instantiating servlet class com.metavante.cst.control.web.LoginMainServlet
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:996)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:671)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
         at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:214)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)
    ----- Root Cause -----
    java.lang.NoClassDefFoundError: javax/ejb/EJBObject
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
         at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)
         at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
         at java.lang.Class.getConstructor0(Class.java:1930)
         at java.lang.Class.newInstance0(Class.java:278)
         at java.lang.Class.newInstance(Class.java:261)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:987)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:671)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
         at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:214)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)

  • EJB-JSF Application : Data does not persist to the database

    Hi,
    I am developing a JSF - EJB application and the data that I send from JSP Page through JSF Managed Bean --> Session Bean --> Java Persistence does not persist in database.
    Here is my scenario ( Iam using JDeveloper IDE to create this application) -
    SCENARIO START
    The scenario consists of two web pages, one enlisting all the users stored in the database, the other contains a form for adding a user
    1.) INDEX.JSP
    2.) ADDUSER.JSP
    Step 1: Create the USERS Table in database
    CREATE TABLE users
    user_id serial,
    username varchar(255) NOT NULL,
    first_name varchar(255),
    last_name varchar(255),
    password char(64) NOT NULL,
    CONSTRAINT pk_users PRIMARY KEY (user_id)
    Step 2: Add Database Connection To JDeveloper
    Go to Database Connection Navigator and create a New Database Connection using the Wizard
    Step 3: Create a New Application in JDeveloper and select JSF, EJB from Application Template
    Step 4: ENTITY BEAN - In the EJB Node Right Click and Select EJB � New Entites from Table (JPA/EJB3.0)
    Use The Wizard and create Entity Bean from Users Table which creates an Entity Bea POJO file as follows �
    User.java -
    package lux.domain;
    import java.io.Serializable;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    import javax.persistence.NamedQuery;
    import javax.persistence.SequenceGenerator;
    import javax.persistence.Table;
    @Entity
    @NamedQuery(name = "User.findAll", query = "select o from User o")
    @Table(name = "USERS")
    public class User implements Serializable {
    @Column(name="FIRST_NAME")
    private String firstName;
    @Column(name="LAST_NAME")
    private String lastName;
    @Column(nullable = false)
    private String password;
    @Column(nullable = false)
    private String username;
    @Id
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="users_seq_generator")
    @SequenceGenerator(name="users_seq_generator", sequenceName="users_user_id_seq")
    @Column(name="USER_ID", nullable = false)
    private Long userId;
    public User() {
    public String getFirstName() {
    return firstName;
    public void setFirstName(String firstName) {
    this.firstName = firstName;
    public String getLastName() {
    return lastName;
    public void setLastName(String lastName) {
    this.lastName = lastName;
    public String getPassword() {
    return password;
    public void setPassword(String password) {
    this.password = password;
    public String getUsername() {
    return username;
    public void setUsername(String username) {
    this.username = username;
    public Long getUserId() {
    return userId;
    public void setUserId(Long userId) {
    this.userId = userId;
    Step 5: STATELESS SESSION BEAN - In the EJB Node Right Click and Select EJB � New Entites from Table (JPA/EJB3.0)
    Again Right Click on Model and create Session Bean from Wizard which creates two files �
    UserDAOBean.java � Stateless Session Bean
    UserDAO.java � Local Interface
    package lux.facade;
    import java.security.MessageDigest;
    import java.security.NoSuchAlgorithmException;
    import java.util.List;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.ejb.Stateless;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    import javax.persistence.Query;
    import lux.domain.User;
    @Stateless(name="UserDAO")
    public class UserDAOBean implements UserDAO {
    @PersistenceContext(unitName="Model")
    private EntityManager em;
    public UserDAOBean() {
    public User getUser(int UserId) {
    User u = new User();
    u = em.find(User.class, UserId);
    return u;
    public List<User> getAllUsers() {
    Query q = em.createQuery("SELECT u FROM User u");
    List<User> users = q.getResultList();
    return users;
    public void createUser(User u) {
    String hashedPw = hashPassword(u.getPassword());
    u.setPassword(hashedPw);
    em.persist(u);
    public void updateUser(User u) {
    String hashedPw = hashPassword(u.getPassword());
    u.setPassword(hashedPw);
    em.merge(u);
    public void deleteUser(User u) {
    em.remove(u);
    private String hashPassword(String password) {
    StringBuilder sb = new StringBuilder();
    try {
    MessageDigest messageDigest = MessageDigest.getInstance("SHA");
    byte[] bs;
    bs = messageDigest.digest(password.getBytes());
    for (int i = 0; i < bs.length; i++) {
    String hexVal = Integer.toHexString(0xFF & bs);
    if (hexVal.length() == 1) {
    sb.append("0");
    sb.append(hexVal);
    } catch (NoSuchAlgorithmException ex) {
    Logger.getLogger(UserDAOBean.class.getName()).log(Level.SEVERE, null, ex);
    return sb.toString();
    Step 6: Create a Deployment file in the Model and Deploy this to a JAR file
    Step 7: Now Right Click on View/Controller Node and create a Java File �
    UserController.java -
    package lux.controllers;
    import javax.ejb.EJB;
    import javax.faces.model.DataModel;
    import javax.faces.model.ListDataModel;
    import lux.domain.User;
    import lux.facade.UserDAO;
    public class UserController {
    @EJB UserDAO userDao;
    private User user;
    private DataModel model;
    public String createUser() {
    this.user = new User();
    return "create_new_user";
    public String saveUser() {
    String r = "success";
    try {
    userDao.createUser(user);
    } catch (Exception e) {
    e.printStackTrace();
    r = "failed";
    return r;
    public DataModel getUsers() {
    model = new ListDataModel(userDao.getAllUsers());
    return model;
    public User getUser() {
    return user;
    public void setUser(User user) {
    this.user = user;
    Step 8: Configure page flow in faces-config.xml
    1. Create the JSP file adduser.jsp by right-clicking View-Controller
    node and selecting New > JSP. Use the wizard to create JSF � JSP Page, fill in
    File Name adduser.jsp, click Finish. -
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>New user</title>
    </head>
    <body>
    <f:view>
    <h:form>
    <h:messages/>
    <h:panelGrid columns="2">
    <h:outputText value="Username"/>
    <h:inputText
    id="Username"
    value="#{user.user.username}"
    required="true"/>
    <h:outputText value="First name"/>
    <h:inputText
    id="FirstName"
    value="#{user.user.firstName}" />
    <h:outputText value="Last name"/>
    <h:inputText
    id="LastName"
    value="#{user.user.lastName}" />
    <h:outputText value="Password" />
    <h:inputSecret
    id="Password"
    value="#{user.user.password}"
    required="true" />
    <h:panelGroup/>
    <h:commandButton
    action="#{user.saveUser}"
    value="Save"/>
    </h:panelGrid>
    </h:form>
    </f:view>
    </body>
    </html>
    2. Repeat the previous step for another JSP file failed.jsp.
    3. On failed.jsp add the string
    Save failed
    Next we configure the page flow.
    1. Open faces-config.xml.
    2. Create index.jsp -
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>User Listing</title>
    </head>
    <body>
    <f:view>
    <h:form>
    <h:outputText value="User Listing"/>
    <h:commandLink action="#{user.createUser}" value="Create a user"/>
    <h:dataTable value="#{user.user}"
    var="dataTableItem" border="1" cellpadding="2" cellspacing="2">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Username"/>
    </f:facet>
    <h:outputText value="#{dataTableItem.username}" />
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="First name"/>
    </f:facet>
    <h:outputText value="#{dataTableItem.firstName}" />
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Last name"/>
    </f:facet>
    <h:outputText value="#{dataTableItem.lastName}" />
    </h:column>
    </h:dataTable>
    </h:form>
    </f:view>
    </body>
    </html>
    3. Drag an arrow from index.jsp to adduser.jsp and replace the arrow�s label to create_new_user.
    4. Repeat the previous step for failed, by dragging and arrow from adduser.jsp to failed.jsp renaming the label to f
    ailed
    5. Finally repeat the step for adduser.jsp, by dragging from adduser.jsp to index.jsp renaming the label to success.
    This creates the following faces-config.xml file �
    <?xml version='1.0' encoding='UTF-8'?>
    <faces-config>
    <managed-bean>
    <managed-bean-name>user</managed-bean-name>
    <managed-bean-class>lux.controllers.UserController</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    <managed-property>
    <property-name>username</property-name>
    <value>#{username}</value>
    </managed-property>
    <managed-property>
    <property-name>firstName</property-name>
    <value>#{firstName}</value>
    </managed-property>
    <managed-property>
    <property-name>lastName</property-name>
    <value>#{lastName}</value>
    </managed-property>
    <managed-property>
    <property-name>password</property-name>
    <value>#{password}</value>
    </managed-property>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/index.jsp</from-view-id>
    <navigation-case>
    <from-outcome>create_new_user</from-outcome>
    <to-view-id>/adduser.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    <navigation-rule>
    <from-view-id>/adduser.jsp</from-view-id>
    <navigation-case>
    <from-outcome>failed</from-outcome>
    <to-view-id>/failed.jsp</to-view-id>
    </navigation-case>
    <navigation-case>
    <from-outcome>success</from-outcome>
    <to-view-id>/index.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    Step 9: Create a Deployment file in the View-Controller and Deploy this to a WAR file
    Step 10: Create a Deployment file in the View-Controller and create an EAR file and add Model�s JAR and View-Controller�s
    WAR files to it.
    Step 11: Run the JSP Files
    SCENARIO END
    Now, When I execute Index.jsp, it does not list values from database and when I click on Create User link, it takes me to adduser.jsp page. When I fill values in this page and click Save button, it takes me to Save Failed page and data does not persist to the database.
    WHAT IS WRONG OUT HERE ???

    If you set a breakpoint in your createUser method - does this code get executed?
    We have a couple of tutorials that might show you how to do this.
    EJB/JSF with ADF-binding tutorial:
    http://www.oracle.com/technology/obe/obe1013jdev/10131/ejb_and_jpa/master-detail_pagewith_ejb.htm
    EJB/JSF without ADF binding:
    http://www.oracle.com/technology/obe/JavaEE_tutorial_10131/index.htm

  • Preferred Development Environment

    We are deciding on how to set up our development environment for a J2EE EJB project
    using WLS and JBuilder. Total developers will be around 12 or more. If we have to
    buy "developer's" licenses for everyone it would be a lot of money.
    The "developer's" license allows 3 client connections and 4 JDBC connections. Does
    this mean that 3 developer's could share an App server running on one machine? Is
    this practical or should/must it be one developer license per developer?
    The "basic" configuration allows unlimited connections. Has anyone tried developing
    with a group as large as this and just using one App server? Would we run into problems
    with developers needing to restart the App server often? Can you legally run multiple
    copies of the App server on one server (different ports) and support multiple developers
    that way.
    We currently have NT boxes with 256MB of memory. Any recommendations on memory?
    If anyone has any suggestions on what works best or what doesn't work, or what you
    have found to work I am very interested to hear your recommendations and experiences.
    If this is the wrong forum please recommend one for me. Thanks in advance.

    Look into the Weblogic partner programs. If you qualify, it is the best way
    to get a set of developer licenses.
    Cameron Purdy
    Tangosol, Inc.
    http://www.tangosol.com
    +1.617.623.5782
    WebLogic Consulting Available
    "Doal Miller" <[email protected]> wrote in message
    news:3a7b3ad6$[email protected]..
    >
    >
    We are deciding on how to set up our development environment for a J2EEEJB project
    using WLS and JBuilder. Total developers will be around 12 or more. If wehave to
    buy "developer's" licenses for everyone it would be a lot of money.
    The "developer's" license allows 3 client connections and 4 JDBCconnections. Does
    this mean that 3 developer's could share an App server running on onemachine? Is
    this practical or should/must it be one developer license per developer?
    The "basic" configuration allows unlimited connections. Has anyone trieddeveloping
    with a group as large as this and just using one App server? Would we runinto problems
    with developers needing to restart the App server often? Can you legallyrun multiple
    copies of the App server on one server (different ports) and supportmultiple developers
    that way.
    We currently have NT boxes with 256MB of memory. Any recommendations onmemory?
    >
    If anyone has any suggestions on what works best or what doesn't work, orwhat you
    have found to work I am very interested to hear your recommendations andexperiences.
    If this is the wrong forum please recommend one for me. Thanks in advance.

Maybe you are looking for

  • Preview won't open simple .ps files

    It seems that under 10.4.3, Preview will no longer open the very simplest, hand-written PostScript files. For instance, go to any of the examples at http://www.cs.indiana.edu/docproject/programming/postscript/examples.html, click on "try it", and Pre

  • Nobody answering my question,Please reply its very urgent???

    Hello Experts, I want to fecth the Supplier information from SAP server to PDM server (non sap) using RFC call.But the LFA1 have some customised fields.. 1) I want the RFC or BAPI which Gives the supplier details with customised fields in LFA1. 2) Ho

  • KEYBOARD IS GOING NUTS!!!!!

    I've had this problem before, and *thought* it had been taken care of by a previous OSX software update. I have a standard wired keyboard and Mighty Mouse, and what's happening is that when I'm trying to type text or numbers, the keyboard will get a

  • ADF mobile: Reuse taskflows for different device models (resolutions) ?

    Hi, ADf 11.1.2.3.0 + mobile extension. What's best practice to create the same mobile app for different device models (= different screen resolutions = different layout)? I mean an app on a smartphone may use different gui components and layout than

  • Add Component to SplitPane (FX 2.0)

    Hello (: How I can add any component (for example button) to SplitPane (javafx.scene.control.SplitPane)? )