How to build and deploy EJB3.0 jar on JBoss Server

Hi:
I want to create web service using EJB3.0.
For that first i have created EJB project,in that i add following code:
package com.ejb;
import javax.ejb.Stateless;
import javax.jws.WebService;
@Stateless
@WebService
public class TemperatureConverter {
     public double celsiusToFarenheit(double temp){
          return ((temp*1.8) + 32);
     public double farenheitToCelsius(double temp){
          return ((temp-32)/1.8);
}Now i want to build and deploy the jar on server.
How can i do this?
Thank You.

Hi AnupDesai,
I suggest you to have a read of the [*JBoss EJB3 Documentation*|http://www.jboss.org/ejb3/docs].

Similar Messages

  • How to build and deploy ejb in j2ee!!

    HI there!!
    Newbie Question. I know this is very rude to ask a question "How to build and deploy ejb in j2ee server??", but please help me. I just learned some servlets worked with tomcat. Now I want to learn more about ejb, could anyone suggest me any online tutorial or book where in it is explained step by step builiding and deploying ejb's in j2ee server, please help me. I would be grateful to you.

    A good book to start with is Enterprise JavaBeans by Monson-Haefel (O'Reilly press). It covers deployment of EJBs on J2EE servers. Also check out sites specific to your server, sometimes they have specific requirements (like Weblogic).

  • How to Build and Deploy Flex application in EP6

    Hi All,
    Can anyone tell how to build and deploy Flex application in EP6.
    I want to build a normal application in flex and present it through iviews. How do I configure my Iiview to have flex component running in Portal Environment.
    Thanks
    Deepak

    A good book to start with is Enterprise JavaBeans by Monson-Haefel (O'Reilly press). It covers deployment of EJBs on J2EE servers. Also check out sites specific to your server, sometimes they have specific requirements (like Weblogic).

  • Libraries and JAR files in netbeans... how to build and deploy a project??

    Hi guys,
    <p>
    I'm having a problem deploying my project. I have created a project structure as so:
    </p>
    <p>
    CLOGE 1.0
    |_Source Packages
    |  |_rdemo
    |    |_ClogeGUI.java [main]
    |    |_ClogeRScript.java
    |_Libraries
       |_Swing Layout Extensions - swing-layout-1.0.jar
       |_C:\CLOGE\JRclient [folder structure of classes]
       |  |_META-INF
       |  |_org.rosuda.JRclient
       |_C:\CLOGE\svgSalamander-tiny [folder structure of classes]
       |  |_META-INF
       |  |_com.kitfox.svg
       |  |_...
       |_JDK 1.6 (Default)
    </p>
    <p>
    Now I can build and run the project in Netbeans (version 5.5) and everything operates as it should. However, if I navigate to the dist folder of the project to the CLOGE_1.0.jar file via the Windows XP Command Prompt and execute "java -jar "CLOGE_1.0.jar", I get this error:
    </p>
    <p>
    Exception in thread "main" java.lang.NoClassDefFoundError: org/rosuda/JRclient/RSrvException<br/>
      at rdemo.ClogeGUI.clogeRScript(ClogeGUI.java:134)<br/>
      at rdemo.ClogeGUI.main(ClogeGUI.java:259)<br/>
    </p>
    <p>
    What do I have to do, so I can simply double-click the CLOGE_1.0.jar file and the project runs?
    </p>
    <p>
    Many thanks,<br/>
    Chris
    </p>
    Edited by: raistrick on Oct 12, 2007 4:49 AM

    Wasn't contracted. Wasn't paid. Wasn't the main focus of the software ;) - I was asked to do it for my technical expertise in statistics and bioinformatics... anyone else here mind giving me some hints other than this unspeakably pathetic excuse for a programmer.
    (by the way "jwenting", if you call yourself a professional and take that attitude to other programmers you won't be in a company very long! Don't jump to assumptions and don't use the internet as some portal to exercise anger that women don't find you attractive and all you have to be cocky about is programming, it's pathetic. Grow up please.
    What I am trying to work out about the answer above, is why. It could mean (1) that you don't know the answer and shunning me so is some poor attempt to save your diminishing ego, which from reading your other posts may be true. It could mean (2) you can't be arsed, which is more likely the case, but then one has to ask why the hell you came on here in the first place. Do you get a kick out of this? Is this your claim to fame - a java forum silver member?? It's not like I wasn't polite or clear in my explanation. Did some unqualified individual steal your job from you once upon a time so all "newbies" thereafter were a target for your pent up aggression? If so, don't worry I am not gunning for your position at all!)
    Many thanks to anyone who can provide a solution. I doubt this is a hard problem to solve and I'd be very grateful if anyone could point me in the direction of an answer. jwentig is quite right, I am not capable of such a task. I'm not a liar, however.
    Edited by: raistrick on Oct 12, 2007 7:25 AM

  • How to build and deploy JavaFX app

    OpenJfx forum is clumsy, awkward and practically unusable so please excuse posting it here.
    Say, I have written a, hopefully, correct .fx script source file or files.
    Then, next, what should I do to run it/them as a standalone Java program, and, an applet-like executable on the browser?
    The current tutorial on OpenJfx site has no mention on this most basic issue.
    Without any IDE, please.

    Got an half-answer on the openjfx:
    https://openjfx.dev.java.net/servlets/ProjectForumMessageView?messageID=20914&forumID=2666
    <quote>
    This information was gleaned from the mailing lists and a
    bit of elbow grease:
    http://jfx.wikia.com/wiki/Programmatically_invoking_a_JavaFX_Script
    http://jfx.wikia.com/wiki/A_command_line_development_of_HelloWorld.fx
    </quote>

  • How to compile and deploy JSP code from Unix server command line?

    I am new to JSP technology. We are thinking to modify some of JSP code to meet our need. But I am not sure what I should do after I change JSP code. How can I compile the changed code? How to deploy? How to publish on the web?

    All files are regenerated if changed.
    That goes for the .java and the .class files that are created. The jsp server checks to see if the current version is the latest. If it is, nothing gets changed or recompiled. If things are different, programs are recompiled.
    Youll notice that if you have a new jsp it always takes longer the first time. Or even when you change a jsp, the first time takes the longest for the page to come up in a browser. This is because of recompiling.
    Does this make any sense?
    Adam

  • Using ant to build and deploy plsql packages to a 11g wls.

    Hi all,
    Not sure is this is the right place, but I found a few other threads in this forum regarding plsql and ant, so I'll try this one.
    My firm is moving from 10g ADF applcations to 11g SOA applications. When I'm not busy being lost in the whole new SOA world, I also have the pleasure of building our ant scripts. :-)
    It has been years since I looked at the deploy scripts I made for 10g, so I'm a bit rusty.
    I used wsassemble in our old scripts and I used http://download.oracle.com/docs/cd/B25221_05/web.1013/b14434/wsassemble.htm as a reference. But I can't seem to find the same documentation for 11g? I tried http://download.oracle.com/docs/cd/E12839_01/index.htm but it doesn't seem to have anything about plsqlAssemble, genInterface, genproxy etc. for 11g wls servers? I also tried google a while to no avail.
    For example, I'm having problems setting the values for the ant-oracle.properties.
    So can someone please throw some links my way, so I can read how to build and deploy plsql packages to a 11g wls server using ant? Thanks!
    Cheers,
    William

    Hi,
    Did you ever find an answer to this question ?
    I am currently creating the webservice using webservices assembler from 10g/OC4j, then using the SmartUpgrade tool to re-engineer the webservice for deployment to 11g
    ( SmartUpgrade info here http://docs.oracle.com/cd/E16764_01/doc.1111/e15878/intro.htm)
    G
    Edited by: user999097 on Mar 5, 2012 1:16 PM

  • ALUI Customization Deploying a Custom Project Step 2: Build and Deploy JARs

    Hi,
    I'm trying to deploy custom project after succesfully completing the installation and debug of AL UI Customization. As given in the documentation (see link below) in the step 2 Build and Deploy I see error given below on executing "ant install" command. Can somebody please identify the error in this?
    http://edocs.bea.com/alui/devdoc/docs60/Plumtree_Development_Environment/UI_Customization/PlumtreeDevDoc_DevEnv_DeployProject_Java.htm
    D:\plumtree_ui_source\portalui\6.1.x>ant install
    Buildfile: build.xml
    Trying to override old definition of task copy
    global.init:
    [copy] Warning: Could not find file D:\plumtree_ui_source\portalui\6.1.x\${
    build.home}\thirdparty\ant-contrib\0.6\ant-contrib-0.6.jar to copy.
    [echo] Ant Contrib successfully loaded.
    [copy] Warning: Could not find file D:\plumtree_ui_source\portalui\6.1.x\${
    build.home}\components\INTERNAL\ptanttasks\115250\cust\ptanttasks.jar to copy.
    init:
    [echo] Using ANT built-in compass loader
    [copy] Warning: Could not find file D:\plumtree_ui_source\portalui\6.1.x\${
    build.home}\components\RECENT\compass\LATEST\java-loader\compass-loader.jar to c
    opy.
    [echo]
    [echo] Could not fine Socrates build location. Setting compass to
    [echo] offline mode.
    [echo]
    [comp-loader] -----------------------------------------------------
    [comp-loader] Compass Loader: <186756> (06/01/2005 12:52 PM)
    [comp-loader] Storing loaded properties in System
    [comp-loader] Stored 67 properties
    [comp-loader] Loaded Compass ( 0 file(s) copied, 17 task(s) defined )
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 24 component(s)
    [comp-props] [ customer-repo_ptwebui ]
    [comp-props] Created Properties for 24 component(s)
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 15 component(s)
    [comp-props] [ customer-repo_ptwebui_dotnet ]
    [comp-props] Created Properties for 15 component(s)
    install:
    Duplicated project name in import. Project global defined first in D:\plumtree_u
    i_source\portalui\6.1.x\_buildcommon\scripts\ant\common\include\global.xml and a
    gain in D:\plumtree_ui_source\portalproduct\6.1.x\_buildcommon\scripts\ant\commo
    n\include\global.xml
    Trying to override old definition of task uri://plumtree.com/ant/common/properti
    es:definebasicprops
    Trying to override old definition of task uri://plumtree.com/ant/common/properti
    es:loadprojectproperties
    Trying to override old definition of task uri://plumtree.com/ant/common/cp-stage
    :loadcomponentprops
    global.init:
    [copy] Warning: Could not find file D:\plumtree_ui_source\portalproduct\6.1
    .x\${build.home}\thirdparty\ant-contrib\0.6\ant-contrib-0.6.jar to copy.
    [echo] Ant Contrib successfully loaded.
    [copy] Warning: Could not find file D:\plumtree_ui_source\portalproduct\6.1
    .x\${build.home}\components\INTERNAL\ptanttasks\115250\cust\ptanttasks.jar to co
    py.
    epglobal.init:
    [echo] Using ANT built-in compass loader
    [copy] Warning: Could not find file D:\plumtree_ui_source\portalproduct\6.1
    .x\${build.home}\components\RECENT\compass\LATEST\java-loader\compass-loader.jar
    to copy.
    [echo]
    [echo] Could not fine Socrates build location. Setting compass to
    [echo] offline mode.
    [echo]
    [comp-loader] -----------------------------------------------------
    [comp-loader] Compass Loader: <186756> (06/01/2005 12:52 PM)
    [comp-loader] Already loaded
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] [ customer-repo_nopull ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 29 component(s)
    [comp-props] [ customer-repo_java ]
    [comp-props] Created Properties for 29 component(s)
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 14 component(s)
    [comp-props] [ customer-repo_dotnet ]
    [comp-props] Created Properties for 14 component(s)
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] [ customer-repo_noarch ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 2 component(s)
    [comp-props] [ customer-repo_win32 ]
    [comp-props] Created Properties for 2 component(s)
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] [ customer-repo_solaris32 ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] [ customer-repo_linux32 ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] [ customer-repo_aix32 ]
    [comp-props] Created Properties for 1 component(s)
    init:
    clean:
    [delete] Deleting directory D:\plumtree_ui_source\portalproduct\6.1.x\build
    install:
    [ant] Parent project doesn't contain any reference 'compass.loader'
    global.init:
    [copy] Warning: Could not find file D:\plumtree_ui_source\portalproduct\6.1
    .x\${build.home}\thirdparty\ant-contrib\0.6\ant-contrib-0.6.jar to copy.
    [echo] Ant Contrib successfully loaded.
    [copy] Warning: Could not find file D:\plumtree_ui_source\portalproduct\6.1
    .x\${build.home}\components\INTERNAL\ptanttasks\115250\cust\ptanttasks.jar to co
    py.
    epglobal.init:
    [echo] Using ANT built-in compass loader
    [copy] Warning: Could not find file D:\plumtree_ui_source\portalproduct\6.1
    .x\${build.home}\components\RECENT\compass\LATEST\java-loader\compass-loader.jar
    to copy.
    [echo]
    [echo] Could not fine Socrates build location. Setting compass to
    [echo] offline mode.
    [echo]
    [comp-loader] -----------------------------------------------------
    [comp-loader] Compass Loader: <186756> (06/01/2005 12:52 PM)
    [comp-loader] Already loaded
    [mkdir] Created dir: D:\plumtree_ui_source\portalproduct\6.1.x\build\registe
    rdir
    [mkdir] Created dir: D:\plumtree_ui_source\portalproduct\6.1.x\build\feature
    dir
    [mkdir] Created dir: D:\plumtree_ui_source\portalproduct\6.1.x\build\install
    code
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] [ customer-repo_nopull ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 29 component(s)
    [comp-props] [ customer-repo_java ]
    [comp-props] Created Properties for 29 component(s)
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 14 component(s)
    [comp-props] [ customer-repo_dotnet ]
    [comp-props] Created Properties for 14 component(s)
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] [ customer-repo_noarch ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 2 component(s)
    [comp-props] [ customer-repo_win32 ]
    [comp-props] Created Properties for 2 component(s)
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] [ customer-repo_solaris32 ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] [ customer-repo_linux32 ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] [ customer-repo_aix32 ]
    [comp-props] Created Properties for 1 component(s)
    init:
    [echo]
    [echo] The property BuildEnvironment.IA_HOME either is not set
    [echo] in your build.properties file or is set to an incorrect
    [echo] location. You will be unable to build an installer. This
    [echo] does not affect developer installations. Developers can
    [echo] ignore this warning.
    [echo]
    [echo] Current value: ${BuildEnvironment.IA_HOME}
    [echo]
    build-registerscripts:
    [echo] Environment variables necessary for versioning not set. BUILD_MAJOR
    , BUILD_MINOR, BUILD_SERVICEPACK, and BUILD_HOTFIX must be set in order to get a
    ccurate version information.
    [devinstall] install-portalui-java
    [fastmarshall] Parent project doesn't contain any reference 'compass.loader'
    global.init:
    [copy] Warning: Could not find file D:\plumtree_ui_source\portalproduct\6.1
    .x\${build.home}\thirdparty\ant-contrib\0.6\ant-contrib-0.6.jar to copy.
    [echo] Ant Contrib successfully loaded.
    [copy] Warning: Could not find file D:\plumtree_ui_source\portalproduct\6.1
    .x\${build.home}\components\INTERNAL\ptanttasks\115250\cust\ptanttasks.jar to co
    py.
    epglobal.init:
    [echo] Using ANT built-in compass loader
    [copy] Warning: Could not find file D:\plumtree_ui_source\portalproduct\6.1
    .x\marshallcode\${build.home}\components\RECENT\compass\LATEST\java-loader\compa
    ss-loader.jar to copy.
    [echo]
    [echo] Could not fine Socrates build location. Setting compass to
    [echo] offline mode.
    [echo]
    [comp-loader] -----------------------------------------------------
    [comp-loader] Compass Loader: <186756> (06/01/2005 12:52 PM)
    [comp-loader] Already loaded
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] [ customer-repo_nopull ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 29 component(s)
    [comp-props] [ customer-repo_java ]
    [comp-props] Created Properties for 29 component(s)
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 14 component(s)
    [comp-props] [ customer-repo_dotnet ]
    [comp-props] Created Properties for 14 component(s)
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] [ customer-repo_noarch ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 2 component(s)
    [comp-props] [ customer-repo_win32 ]
    [comp-props] Created Properties for 2 component(s)
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] [ customer-repo_solaris32 ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] [ customer-repo_linux32 ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] Version: <206776> (11/15/2005 11:59 AM)
    [comp-props] [ general ]
    [comp-props] Created Properties for 1 component(s)
    [comp-props] [ customer-repo_aix32 ]
    [comp-props] Created Properties for 1 component(s)
    epmarshall.init:
    [mkdir] Created dir: D:\plumtree_ui_source\portalproduct\6.1.x\build\warbuil
    ddir
    Trying to override old definition of task comp-collate
    Trying to override old definition of task comp-stage
    init:
    epmarshall.marshall-java:
    portalui.marshall-java:
    [comp-collate] Version: <null> (null)
    [comp-collate] Collate [java-portalui]
    BUILD FAILED
    D:\plumtree_ui_source\portalui\6.1.x\_buildcommon\scripts\ant\portalui\include\p
    ortalui-dev.xml:34: The following error occurred while executing this line:
    D:\plumtree_ui_source\portalproduct\6.1.x\devinstall.xml:1177: The following err
    or occurred while executing this line:
    D:\plumtree_ui_source\portalproduct\6.1.x\devinstall.xml:652: The following erro
    r occurred while executing this line:
    D:\plumtree_ui_source\portalproduct\6.1.x\devinstall.xml:733: The following erro
    r occurred while executing this line:
    D:\plumtree_ui_source\portalproduct\6.1.x\devinstall.xml:478: The following erro
    r occurred while executing this line:
    D:\plumtree_ui_source\portalproduct\6.1.x\marshallcode\marshall_portalui.xml:69:
    No File: D:\bea\alui\_customer_repository\portalui\6.1.x\local\java-ptwebui\jav
    a-ptwebui.mf
    Total time: 1 minute 15 secondsa

    Thanks for the help! It started building after commenting the DTD tag include in the xml.
    But build failed with few warnings and errors.
    two of the warnings are as follows (FYI I've compass folder as you suggested in other thread)
    #1
    [copy] Warning: Could not find file D:\plumtree_ui_source\portalui\6.1.x\pt
    webui\portaluiinfrastructure\${build.home}\thirdparty\ant-contrib\0.6\ant-contri
    b-0.6.jar to copy.
    #2
    Could not fine Socrates build location. Setting compass to
    offline mode.
    =============================
    AND the ERROR message is as given below
    precompile:
    buildjava:
    [javac] Compiling 154 source files to D:\plumtree_ui_source\portalui\6.1.x\ptwebui\portalpages\build\x86\classes\java
    [javac] D:\plumtree_ui_source\portalui\6.1.x\ptwebui\portalpages\java\prod\src\com\plumtree\portalpages\condition\conditiontypes\ConditionTypeClientIPAddress.java:158: compareTo(java.lang.String) in java.lang.String cannot be applied to
    (java.lang.Object)
    [javac] if ("*".compareTo(arIPAddress) != 0 && ((XPConver
    t.ToInteger(arIPAddress[i]) < 0) || ((i == 0) && (XPConvert.ToInteger(arIPAddres
    s[i]) == 0)))) {
    [javac] ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 1 error
    BUILD FAILED
    D:\plumtree_ui_source\portalui\6.1.x\build_core.xml:103: The following error occurred while executing this line:
    D:\plumtree_ui_source\portalui\6.1.x\ptwebui\build_core.xml:80: The following error occurred while executing this line:
    D:\plumtree_ui_source\portalui\6.1.x\_buildcommon\scripts\ant\common\include\default-build.xml:142: The following error occurred while executing this line:
    D:\plumtree_ui_source\portalui\6.1.x\_buildcommon\scripts\ant\common\antlib\java.xml:35: Compile failed; see the compiler error output for details.

  • How to automate the build and deploy?

    Is there any way to build and deploy component to UCM using command line? such as ant script? or is there anyway to run "component wizard" in a command line without GUI? I'm looking for a way to automate the build and deploy process.
    Thanks

    Here is link for build script using ant
    http://wiki.oracle.com/page/UCM+Ant+Buid+Script
    there are some videos in you tube also
    http://www.youtube.com/watch?v=QIT6gkEC2Tc

  • Building and Deploying Within a Directory ?

    Hi Guys,
    Iv just been going through the "Oracle9iAS Containers for J2EE Users Guide, Release 2 (9.0.2)" pdf and have juts gone through the Building and Deploying within a directory.
    This is something, as a developer I would love or even demand to be able to do as createing war , jar and ear files each time I make a change is a total time nightmare...
    Unfortunately I was'nt able to get the above working with a very simple app.
    Before trying the app I made sure I could deploy it normally as a an ear file which worked.
    Below follows a description of the dir structure plus info added to relavent .xml files ( gods theres so many )..
    j2ee/home/applications/BalanceManager
    WebModule/
    WEB-INF/
    lib/
    classes/
    web.xml
    AccountHolders.jsp
    META-INF
    EJBModule/
    META-INF/
    application.xml
    application.xml ( not the one in config dir but the one in the above dir struct, ear application.xml) :-
    <application>
    <display-name>BM</display-name>
    <module>
    <ejb>EJBModule</ejb>
    </module>
    <module>
    <web>
    <web-uri>WebModule</web-uri>
    <context-root>BM</context-root>
    </web>
    </module>
    </application>
    server.xml ( in j2ee/home/config )
    <application name="BM" path="../applications/BalanceManager" auto-start="true" />
    http-web-site.xml:-
    <web-app application="BM" name="BalanceManager/WebModule" root="/BM" />
    The above files have been edited as of the document above, which can also be found at http://otn.oracle.com/docs/products/ias/doc_library/90200doc_otn/web.902/a95880.pdf.
    When I start up OC4J the application gets deployed ( dos prompt ):-
    C:\devenv\oc4j\j2ee\home>java -jar oc4j.jar
    Auto-deploying BM (New server version detected)...
    Copying default deployment descriptor from archive at C:
    pplications\BalanceManager\BaEJBModule/META-INF/orion-ej
    directory C:\devenv\oc4j\j2ee\home\application-deploymen
    Auto-deploying BaEJBModule (No previous deployment found
    Auto-deploying file:/C:/devenv/oc4j/j2ee/home/applicatio
    odule/ (New server version detected)...
    Oracle9iAS (9.0.2.0.0) Containers for J2EE initialized
    and also a BM dir is created in the application-deployements dir.
    So everything looks great, but when I navigate to -
    http://localhost:8686/BM/AccountHolders.jsp
    I get http 500 error page cannot be displayed.
    So it looks like the context root BM did'nt get added to the servers web context,
    but why??
    Obviously AccountHolders.jsp is the jsp in the WebModule dir.
    Iv been tweaking this and that and obviously tweaking never seems to work so if any ones got any ideas or suggestions on how to setup and deploy within dirs instead of ears please reply to me asap.
    Look forward to your answers,
    Stephen.

    Stephen,
    The entry in the http-web-site.xml should be:
    <web-app application="BM" name="WebModule" root="/BM" />
    This should be the name of the web-module in the application (EAR).
    regards
    Debu Panda
    oracle

  • How to compile and deploy JAX-WS web service from commandline (!) ?

    I have read a couple of tutorials about how to create and deploy web services with
    certain IDEs (e.g. Eclipse).
    But I found no guide on how to compile a java web service source from command line !!
    Lets say I have a java source class with annotations inside (like "@WebMethod").
    How do I generate with the built-in j2ee v5 tools from a web service from command line and deploy it e.g. to TomCat or JBoss ?
    Is there somewhere such a simple step-by-step intro?
    Thx
    Peter

    You can download JWSDP 2.0 from sun and install it. Under jaxws (the installed directory) you can find sample directory which has build.xml can be run from command prompt using ant. if you want in detail means go through the build.xml and use wsgen.bat or wsimport under the bin directory of jaxws
    Edited by: Muyallu_Bala on Apr 14, 2008 5:49 AM

  • Building and deploying J2EE apps ?  Now there is a solution for production root cause analysis.

    Is your organization building and deploying J2EE apps? If so, Halo
    can help solve one of the toughest issues facing enterprises today:
    Finding the root cause of software faults.
    "Halo monitors, pinpoints, reports on and provides a source-code level
    root cause of software faults in deployed J2EE apps. Halo is unique
    because it's the only technology that can give you a root cause
    diagnosis in a fully deployed, live production application. Halo has
    such low performance overhead that customers deploy their final,
    production versions of their applications with Halo enabled.
    Used with Web Application Servers like WebLogic, Halo helps ensure
    that deployed code is reliable and able to be quickly fixed if
    problems turn up. Most important, because Halo is an "always on"
    technology, you get all the information you need to rapidly solve a
    problem on the first fault. Problem replication and bug reports are
    obsolete with Halo
    "Halo has a unique ability to provide a root cause diagonosis and
    understanding
    of software problems in production systems, without needing to
    replicate the
    issue.
    Test on WebLogic proved that Halo runs with extremely low overhead and
    is suitable for use in deployed production systems"
    Andrew Sliwkowski, Software Engineer
    BEA Systems, Inc.
    The key is Halo's high performance, low overhead TraceBack
    instrumentation technology. Based on technology out of MIT and proven
    in the field, TraceBack enables you to instrument JARs, EARs and WARs
    within minutes, without touching source code.
    Halo is useful throughout the entire application life cycle, from
    development through test, beta and deployment.
    If you have interest in learning more visit our website at
    www.incer.com or email me directly at [email protected] (Rick Martin)

    I have two questions. We have just started developing apps using jdev9i, 9iAS v2 and are new to the j2ee environment so my questions may be very easy ones.
    Question 1: We have set up Oracle pooling connection to our databases. We have a development, test and production database. When I deploy my application, it includes the connections. This is preventing me from moving the EAR files from dev to test to prod without modification and re deploying to my EAR file. Is there a way or a place that I can put my database connections that will not be included in my EAR files and the application still find them?datasources.xml is where the info regradings connection to databases is licated. If you're using 9iAS
    you can use EM to create datasource entry at the global level. In OC4J standalone you could use admin.jar
    or edit the file. Check out the standalone user's guide at http://otn.oracle.com/tech/java/oc4j/pdf/oc4j_so_usersguide_r2.pdf.
    Also, you will othe OC4J docs on OTN.
    Question 2: I have a stand alone oc4j set up for our developers to use while testing their applications. The applications include libraries supplied in jdev such as xml parser v2. I do not want to deploy those lib files with the app because I will have to redeploy all my apps if I upgrade jdev. I just want to be able to upgrade the libraries, test the apps and not have to redeploy everything. I can do this by coping the jdev lib to 9iAS but I can't seem to find the right place to put the lib for the stand alone oc4j instance. You can use the library tag within application.xml for server wide availability. Check out the article
    http://otn.oracle.com/oramag/oracle/02-sep/o52oc4j_2.html specifically class loading in OC4J section
    Any help would be greatly appreciated. Thanks in advance.

  • How to Create and Deploy Web Services Using Oracle 9i JDeveloper

    Hi,
    My Question is how to create and deploy Web Services using Oracle 9i JDeveloper.Anybody please give me a detailed Reply.Please Reply to [email protected]
    Hopr to Hear From you,
    Regards,
    G Sreekumar

    You could use datasources. You should do this in your BC4J Configuration. Then when deploying your applicaiton use the command -installDataSource (from admin.jar) to create the right datasource.
    You could probably use the name of your connection + "DS" so you can also use it locally in JDeveloper as JDev seesm to create this automaticly for your Connections.

  • How to create and deploy a simple jstl applicaton in weblogic 10.3.3

    How to create and deploy a simple jstl applicaton in weblogic 10.3.3

    1) Since JSTL libraries are provided as Web application libraries, they must be deployed before the Web application that is using JSTL functionality is deployed. The libraries can be deployed using the Administration Console or with the command-line weblogic.Deployer tool.
    Here’s an example of deploying a JSTL 1.2 library using the weblogic.Deployer command-line:
    java weblogic.Deployer -adminurl t3://localhost:7001
    -user weblogic -password weblogic
    -deploy -library
    d:/beahome/wlserver_10.3/common/deployable-libraries/jstl-1.2.war
    This command deploys the JSTL 1.2 library using the default library-name, specification-version and implementation-version defined by the MANIFEST.MF in the library.
    After a library is deployed, the extension-name, specification-version and implementation-version of the library can be found in Administration console. This information can also be found in the MANIFEST.MF file of the library WAR file.
    For more information on deploying a Web module refer below URL
    http://docs.oracle.com/cd/E15051_01/wls/docs103/deployment/deployunits.html
    2) To reference a JSF or JSTL library, a standard web application can define a <library-ref> descriptor in the application’s weblogic.xml file. Here is an example:
    <library-ref>
    <library-name>jsf</library-name>
    <specification-version>1.2</specification-version>
    <implementation-version>1.2.0</implementation-version>
    <exact-match>false</exact-match>
    </library-ref>
    For more information on referencing a Web application library refer below URL
    http://docs.oracle.com/cd/E15051_01/wls/docs103/programming/libraries.html
    3) Create a sample JSP in your application and JSP should look as shown below
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <html>
    <head>
    <title>TestJSTL</title>
    </head>
    <body>
    <c:set var="topic" value="JSTL" />     
    <c:out value="${topic}" />
    </body>
    </html>
    4) Create WAR and deploy and test.
    Edited by: Murali Veligeti on Jul 26, 2012 9:00 AM

  • OSM 7.03 build and deploy

    We have installed the OSM server on Solaris Sparc server with 10.3.1 Weblogic server. The Eclipse is installed on the Windows machine which has 10.3.3 weblogic. Will building the cartrdiges with 10.3.3 weblogic lib files and deploying them on to a server which is 10.3.1 cause any issues?

    None of the Weblogic files referenced by Design Studio are bundled into the automation plugin files that are deployed to the server, so it shouldn't cause any issues. That being said, the safest (and supported) approach would be to have the same WLS version in both places.
    Generally we would recommend customers use WLS 10.3.3 if you are on OSM 7.0.3.x. There are a number of important fixes in that release that are important to consider.
    Brian.

Maybe you are looking for

  • Error while opening Shared Services console

    Hi, I have installed and configured HSS 931 (32bit) on win 2003 64bit successfully. App server is WebLogic92 MP3. IE version 6.0 When i try to launch Shared services console, login page opens with error : "Object doesn't support this method or proper

  • Convert from String to Date for storing in SQL Server 2000

    Hi, I've accepted some values from a user using a form in HTML.Now using Servlets I transfer the value to my java code . I want to know how can I convert a DATE accepted from the user thats presently in "String" format to the "datetime" format for SQ

  • DeliveryException: invalid content type for SOAP: TEXT/PLAIN; HTTP 302 Move

    Hi everyone, Hello all, I have an RFC->XI->Web Service (SOAP) synchronous scenario. I'm trying to send a message from the the RFC, and in the message monitoring (SXMB_MONI) I'm getting this error message:   <?xml version="1.0" encoding="UTF-8" standa

  • Function module for material susbstitution in kotd001

    Hi can anyone tell me the function module used for substitution materials in kotd001 table. points are awarded for everyone. thanks kishore.

  • Af: column Disabled ?

    Hi, I want to disable the selection of a column when I have one attribute of my object is set to null. How can I do this ? I've been seach in the af:column component but I didn't found some attribute like "disabled" or "readOnly" . Thanks, and sorry