Packaging and deploying jax ws (webservice) in multiple servers

I am a java developer and new to JAX-WS.
i got one requirement to create a web service using jax-ws, packaging using ant build and deploying it in JBOSS and WEBSPHERE server.
The process which i followed to create a web service below:
     1) created a web service class using @webservice annotation
     2) created a client side artifacts using wsimport which is provided by Jdk and created a war and deployed it jboss.
     3) wsdl is getting generated while deploying a war using a URI - (http://localhost:8080/mywebapplication/routing?wsdl)
     4) create client class to call the webservice. everything is working fine for me.
Need your expert input for the following below:
     1) if i write the ant build script to package the client stubs, how i can use wsdl location in wsimport ant task. should i use URI (wsdl="http://localhost:8080/mywebapplication/routing?wsdl") or
(wsdl="d:/route.wsdl")? which is the best practice?
     2) i want to deploy my webservice in JBOSS and WEBSPHERE in different machine and different port no?
     for e.g
*     http://ip1:port1/mywebapplication/route?wdl*
*     http://ip2:port2/mywebapplication/route?wdl*
*     http://ip3:port3/mywebapplication/route?wdl*
     how to mention dynamic ipaddress and port no while running ant build script?
     how to change the wsdl location and port number in generated wsdl and RoutingService client stubs class dynamically? (dont want to change soad address location manually)
*     Do i need to use wsgen to generate server stubs?*
*     Need your inputs in packaging and deploying jax ws in multiple servers.*
Thanks in advance.

how to change the wsdl location and port number in generated wsdl and RoutingService client stubs class dynamically? (dont want to change soad address location manually)
Your client stub should look like that...
<code>
@WebServiceClient(name = "MyClientStub", targetNamespace = "http://www.openuri.org/", wsdlLocation = "http://localhost:8080/MyClientStub/MyClientStubProxy/#%7Bhttp%3A%2F%2Fwww.openuri.org%2F%7DMyClientStub?wsdl")
public class MyClientStub
extends Service
public MyClientStub(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
</code>
You can use the constructor above, like that...
<code>
URL baseUrl = MyClientStub.class.getResource(".");
URL url = new URL(baseUrl, "http://your-server:your-port-no/MyClientStub/MyClientStubProxy/#%7Bhttp%3A%2F%2Fwww.openuri.org%2F%7DMyClientStub?wsdl");
     MyClientStub stub = new MyClientStub(url, new QName("http://www.openuri.org/", "MyClientStub");
</code>

Similar Messages

  • How to deploy the same WebService to multiple servers

    Hi
    I have to deploy the same webservice + its clients to multiple servers. However, the WS URL is hardcoded in its descriptor, as well as in the client, so it means that I have to rebuild everything each time I want to deploy it to a new server.
    How can I set the URL dynamically at runtime?
    Thanks a lot
    Jean-Noel

    Hi There,
    I think what you can do is once you create your webservice , it has a property called
    SOAP RPC URL which you can edit before you create the wsdl and the client.
    Hope that helps
    Kishore

  • What are best practice for packaging and deploying j2EE apps to iAS?

    We've been running a set of J2EE applications on a pair of iAS SP1b for about a year and it has been quite stable.
    Recently however we have had a number of LDAP issues, particularly when registering and unregistering applications (registering ear files sometimes fails 1st time but may work 2nd time). Also We've noticed very occasionally that old versions of classes sometimes find their way onto our machines.
    What is considered to be best practice in terms of packaging and deployment, specifically:
    1) Packaging - using the deployTool that comes with iAS6 SP1b to package is a big manual task, especially when you have 200+ jsp files. Are people out there using this or are they scripting it with a build tool such as Ant?
    2) Deploying an existing application to multiple iAS's. Are you guys unregistering old application then reregistering new application? Are you shutting down iAS whilst doing the deployment?
    3) Deploying ear files can take 5 to 10 mins, is this normal?
    4) In a clustered scenario where HTTPSession is shared what are the consequences of doing deployments to data stored in session?
    thanks in asvance for your replies
    Owen

    You may want to consider upgrading your application server environment to a newer service pack. There are numerous enhancements involving the deployment tool and run time layout of your application that make clear where you're application is loading its files from.
    If you've at a long running application server environment, with lots of deployments under your belt, you might start to notice slow downs in deployment and kjs start time. Generally this is due to garbage collecting in your iAS registry.
    You can do several things to resolve this. The most complete solution is to reinstall the application server. This will guarantee a clean ldap registry. Of course you've got to restablish your configurations and redeploy your applications. When done, backup your application server install space with the application server and directory server off. You can use this backup to return to a known configuation at some future time.
    For the second method: <B>BE CAREFUL - BACKUP FIRST</B>
    There is a more exhaustive solution that involves examining your deployed components to determine the active GUIDS. You then search the NameTrans section of the registry searching for Applogic Servlet *, and Bean * entries that represent your previously deployed components but are represented in the set of deployed GUIDs. Record these older GUIDs, remove them from ClassImp and ClassDef. Finally remove the older entries from NameTrans.
    Best practices for deployment depend on your particular environmental needs. Many people utilize ANT as a build tool. In later versions of the application server, complete ANT scripts are included that address compiling, assembly and deployment. Ant 1.4 includes iAS specific targets and general J2EE targets. There are iAS specific targets that can be utilized with the 1.3 version. Specialized build targets are not required however to deploy to iAS.
    Newer versions of the deployment tool allow you to specify that JSPs are not to be registered automatically. This can be significant if deployment times lag. Registered JSP's however benefit more fully from the services that iAS offers.
    2) In general it is better to undeploy then redeploy. However, if you know that you're not changing GUIDs, recreating an existing application with new GUIDs, or removing registered components, you may avoid the undeploy phase.
    If you shut down the KJS processes during deployment you can eliminate some addition workload on the LDAP server which really gets pounded during deployment. This is because the KJS processes detect changes and do registry loads to repopulate their caches. This can happen many times during a deployment and does not provide any benefit.
    3) Deploying can be a lengthy process. There have been improvements in that performance from service pack to service pack but unfortunately you wont see dramatic drops in deployment times.
    One thing you can do to reduce deployment times is to understand the type of deployment. If you have not manipulated your deployment descriptors in any way, then there is no need to deploy. Simply drop your newer bits in to the run time space of the application server. In later service packs this means exploding the package (ear,war, or jar) in to the appropriate subdirectory of the APPS directory.
    4) If you've changed the classes of objects that have been placed in HTTPSession, you may find that you can no longer utilize those objects. For that reason, it is suggested that objects placed in session be kept as simple as possible in order to minimize this effect. In general however, is not a good idea to change a web application during the life span of a session.

  • Automated packaging and deploying of WebCenter Spaces/Portal

    Hey,
    I'm using WebCenter PS5 (11.1.1.6) and was wondering if anyone has setup package and deployment scripts for use in Continuous Integration (CI) for Webcenter Portal and Spaces using Ant. From the documents online I can see that there is limited support for this:
    WebCenter Portal
    You can use the 'New...' wizard to generate an ant build which will build a .war for your Portal.jpr project. What I can't find is something that will generate an .ear for the entire .jws. Is there a way to do this through ant, wlst or other without doing a 'right-click' option in JDeveloper? It looks like the .ear generation adds a bit of extra stuff like the metadata archive and so couldn't fudge it through a normal <ear> task to wrap the .war.
    WebCenter Spaces
    So it looks like extending spaces requires quite a few different artifacts. The first being the extend.spaces.webapp.war, which is simple enough since the DesignWebCenterSpaces\WebCenterSpacesExtensionLibrary comes with an ant to do packaging and deployment. However it still leaves question marks for all the .ear files that contain Resources. It would seem you only have 2 choices here - right click deploy from JDeveloper or export as EAR from JDeveloper and then manually install. Are there any ojdeploy tasks etc for the individual spaces resources that could package and install into spaces?
    It looks like the only thing I can really properly automate at the moment is the extend.spaces.webapp.war deployment, and all the rest I will have to generate an EAR from within JDeveloper. I really want to avoid generating from JDeveloper as that means you have to check-in archives into source control which isn't good practice.
    Responses on this topic are next to none so I would really appreciate an answer if anyone has tried or done this.
    Cheers,
    Ross

    So I managed to find a way to build the EAR using ant/ojdeploy for the WebCenter Portal Application. See the following text section which is found in the given link:
    http://one-size-doesnt-fit-all.blogspot.com.au/2010/11/using-ojdeploy-and-ant-for-creating-adf.html
    Entirely separately to generating ADF libraries, if you wish to use the ojdeploy utility to create an EAR via the workspace, you do this by dropping the project option leaving the workspace, profile and outputfile options. If you do this under JDev 11.1.1.2.0 specifically you'll see the error message "Missing <workspace>, <project> or <profile> parameter in <deploy> element", caused by a bug in the ojdeploy utility, of which there is a patch available.
    So basically just drop the <ora:parameter name="project" value="${oracle.jdeveloper.project.name}"/> line in your ant script and it will use the .jws instead to build your project.

  • Split Directory Packaging and Deployment Question

    Hello Rob Woollen and All,
    I have a question about packaging and deployment with the "split directory structure"
    in WebLogic Server 8.1.
    Specifically, how does one go about deciding which classes to put in myEnterpriseApp/myWebApp/WEB-INF/classes,
    versus myEnterpriseApp/myEjbModule, versus myEnterpriseApp/APP-INF/classes?
    I think the answer to the first part is easy enough: if there are classes depended
    on by, say, the servlets in a web app, but not depended on anywhere else in the
    enterprise app, then those classes should go in WEB-INF/classes.
    It's the other part of the question that gives me trouble. I use local interfaces
    on my session beans. Let's say I have a domain object class returned from a session
    bean method and depended on by the web app. If I put that domain object class
    under myEnterpriseApp/myEjbModule, then the web app can see it by virtue of the
    classloader arrangement.
    But the wlcompile Ant target supposedly compiles stuff to build/APP-INF/classes.
    What stuff? How does it decide? I haven't experimented and empirically observed
    yet, but I couldn't find the answer in the documentation and tutorials. Is it
    looking for java source files under src/myEnterpriseApp but not under myWebApp
    or myEjbModule? In general, does BEA have any recommendations in this area?
    Thanks,
    Randy

    "Randy Stafford" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi Mark,
    Thanks for the reply. I don't have 8.1 installed yet, so I can'tempirically
    observe the example's behavior. But I downloaded the example andinspected the
    code. It answers some, but not all, of my questions.Where to start.
    In 8.1 we have made optimizations to J2EE packaging. Mostly this is about
    not having to use manifest classpath's to do sharing of of common classes.
    MF Cp's are a pain to configure. You put your classes in one location in
    the ear and then EVERY module has to have a MF CP entry pointing to that
    location, and then you actually have N number of classes loaded per module.
    The mechanism to share classes across all modules is APP-INF/lib and
    APP-INF/classes. The benefit is that APP-INF is shared across all modules.
    So to your question below you could just put it in the EJB module, BUT if
    you have mutliple EJBs that you split into seperate modules your back tot
    the same issue. So APP-INF is just the simplist solution over-all.
    Split-dir is a specified way to lay out disk your src files
    Split-dir
    From code inspection, it looks like the JSP and EJB (therefore the web appmodule
    and EJB module) both depend on the AppUtils class, which is not inAPP-INF, but
    rather in a directory under the enterprise app directory that does notrepresent
    a web app module or EJB module. In the build file's compile target, is itthe
    wlcompile task invocation that causes compilation of AppUtils.java? Or isit
    the ant task invocation (with "build.appStartup" as the value of thetarget attribute)
    that causes compilation of AppUtils.java due to the dependency ofApplicationStartup
    on AppUtils? And what subdirectory of the build directory doesAppUtils.class
    end up in?
    Why not just put AppUtils.java in the EJB module? Both dependent moduleswould
    still be able to see it by virtue of the classloader arrangement. Doesputting
    it in outside of all dependent modules represent a convention that BEArecommends?
    >
    Finally, why not put applicationresource.properties in the same place asits user
    AppUtils.java?
    Thanks,
    Randy
    "Mark Griffith" <[email protected]> wrote:
    Randy:
    (Rob may post later, but here is my take)
    "Randy Stafford" <[email protected]> wrote in message
    news:[email protected]...
    Hello Rob Woollen and All,
    I have a question about packaging and deployment with the "split
    directory
    structure"
    in WebLogic Server 8.1.
    Specifically, how does one go about deciding which classes to put inmyEnterpriseApp/myWebApp/WEB-INF/classes,
    versus myEnterpriseApp/myEjbModule, versusmyEnterpriseApp/APP-INF/classes?
    I think the answer to the first part is easy enough: if there are
    classes
    depended
    on by, say, the servlets in a web app, but not depended on anywhereelse
    in the
    enterprise app, then those classes should go in WEB-INF/classes.
    It's the other part of the question that gives me trouble. I use localinterfaces
    on my session beans. Let's say I have a domain object class returnedfrom
    a session
    bean method and depended on by the web app. If I put that domain
    object
    class
    under myEnterpriseApp/myEjbModule, then the web app can see it by
    virtue
    of the
    classloader arrangement.
    But the wlcompile Ant target supposedly compiles stuff tobuild/APP-INF/classes.
    What stuff? How does it decide?wlcompile has a module factory. If a directory is claimed by a module
    factory then it is compiled by that specific module compiler. The rules
    for
    module definition follow the same J2EE formatting rules.
    So:
    /myejb/
    would be identified as a ebj module by:
    */myejb/meta-inf/ejb-jar.xml
    */myejb/myejb.ejb (EJBGen file)
    then src files (*.java) will be compiled to
    $BUILD_DIR/myejb/
    /myweb/
    would be identifid as a web module by:
    */myweb/WEB-INF/web.xml
    Also for webapps
    /myweb/WEB-INF/src/*.java
    will be compiled ot
    $BUILD_DIR/myweb/WEB-INF/classes
    We choose WEB-INF/src following the struts precedence.
    So a plain old module that has noting but .java files in it will go to
    $BUILD_DIR/APP-INF/classes
    If you have a jar of classes that you need to share across the entire
    ear,
    you would check it into your src tree at:
    $SRC_DIR/APP-INF/lib/mycommon.jar
    You can check out an example at:
    $BEA_HOME/weblogic81/samples/server/examples/src/examples/splitdir/helloWorl
    dEar
    Hope this helps.
    cheers
    mbg
    I haven't experimented and empirically observed
    yet, but I couldn't find the answer in the documentation and tutorials.Is it
    looking for java source files under src/myEnterpriseApp but not undermyWebApp
    or myEjbModule? In general, does BEA have any recommendations in thisarea?
    Thanks,
    Randy

  • Confuse on document "Packaging and Deploying Your Providers"

    Hi..
    I am refering to articel in PDK Jan 2003, "Packaging and Deploying Your Providers".
    In Part "Packaging Your Provider"
    No2 = Where can i find the template war file?
    = How i extract them to my working directory.
    Overall..can anybody explain a little more detail about this?
    I am using Portal 9.0.2 V2...
    Thanks.

    The template application is located under pdk\jpdk\v2. Copy templte.war to a working directory and extract it with a unzip tool (like Winzip). Then I imported the files into jDev, and tried stuff out with that tool. There it's easy to pack and deploy template.war (or template.ear) againg too.
    Good luck!

  • Best Practices for Packaging and Deploying Server-Specific Configurations

    We have some server-specific properties that vary for each server. We'd
    like to have these properties collected together in their own properties
    file (either .properties or .xml is fine).
    What is the best-practices way to package and deploy an application (as an
    ear file), where each server needs some specific properties?
    We'd kind of like to have the server-specific properties file be stored
    external to the ear on the server itself, so that the production folks can
    configure each server's properties at the server. But it appears that an
    application can't access a file external to the ear, or at least we can't
    figure out the magic to do it. If there is a way to do this, please let me
    know how.
    Or do we have to build a unique ear for each server? This is possible, of
    course, but we'd prefer to build one deployment package (ear), and then
    ship that off to each server that is already configured for its specific
    environment. We have some audit requirements where we need to ensure that
    an ear that has been tested by QA is the very same ear that has been
    deployed, but if we have to build one for each server, this is not
    possible.
    Any help or pointers would be most appreciated. If this is an old issue,
    my apologies, would you please point me to any previous material to read?
    I didn't see anything after searching through this group's archives.
    Thanks much in advance,
    Paul
    Paul Hodgetts -- Principal Consultant
    Agile Logic -- www.agilelogic.com
    Consulting, Coaching, Training -- On-Site & Out-Sourced Development
    Java, J2EE, C++, OOA/D -- Agile Methods/XP/Scrum, Use Cases, UI/IA

    The one draw back to this is you have to go all the way back to ant and the
    build system to make changes. You really want these env variables to be
    late binding.
    cheers
    mbg
    "Sai S Prasad" <[email protected]> wrote in message
    news:[email protected]...
    >
    Paul,
    I have a similar situation in our project and I don't create ear filesspecific
    to the environment. I do the following:
    1) Create .properties file for every environment with the same attributename
    but different values in it. For example, I have phoneix.properties.NT,phoenix.properties.DEV,
    phoenix.properties.QA, phoenix.properties.PROD.
    2) Use Ant to compile, package and deploy the ear file
    I have a .bat file in NT and .sh for Solaris that in turn calls theant.bat or
    ant.sh respectively. For the wrapper batch file or shell script, you canpass
    the name of the environment. The wrapper batch file will copy theappropriate
    properties file to "phonenix.properties". In the ant build.xml, I alwaysrefer
    to phonenix.properties which is available all the time depending on theenvironment.
    >
    It works great and I can't think of any other flexible way. Hope thathelps.
    >
    Paul Hodgetts <[email protected]> wrote:
    We have some server-specific properties that vary for each server. We'd
    like to have these properties collected together in their own properties
    file (either .properties or .xml is fine).
    What is the best-practices way to package and deploy an application (as
    an
    ear file), where each server needs some specific properties?
    We'd kind of like to have the server-specific properties file be stored
    external to the ear on the server itself, so that the production folks
    can
    configure each server's properties at the server. But it appears that
    an
    application can't access a file external to the ear, or at least we can't
    figure out the magic to do it. If there is a way to do this, please
    let me
    know how.
    Or do we have to build a unique ear for each server? This is possible,
    of
    course, but we'd prefer to build one deployment package (ear), and then
    ship that off to each server that is already configured for its specific
    environment. We have some audit requirements where we need to ensure
    that
    an ear that has been tested by QA is the very same ear that has been
    deployed, but if we have to build one for each server, this is not
    possible.
    Any help or pointers would be most appreciated. If this is an old issue,
    my apologies, would you please point me to any previous material to read?
    I didn't see anything after searching through this group's archives.
    Thanks much in advance,
    Paul
    Paul Hodgetts -- Principal Consultant
    Agile Logic -- www.agilelogic.com
    Consulting, Coaching, Training -- On-Site & Out-Sourced Development
    Java, J2EE, C++, OOA/D -- Agile Methods/XP/Scrum, Use Cases, UI/IA

  • Package and Deployment

    Hello all,
    I know in Visual Basic there is a Packaging and Deployment wizard that will allow you to create an executable setup to install your application, and I am wondering if there is such a tool for use in Java? I use TextPad as my editor, and not a GUI development tool, so would I need to download a special application to create installation packages? I'm not sure if those GUI development tools already include deployment solutions..
    I have been getting better coding wise in Java, but now I am getting to the point where I need to package and deploy my application, or atleast create an executable version of my application (does not necessarily need a Setup application), and I am not sure how to go about this. Would anyone be able to point me in the right direction, or give any suggestions/advice? I gladly appreciate it!
    Thank you,
    - Dave

    This probably describes what you want to do. You don't mention what the application is - an application, an applet, or a Web Start program. Choose the "Deployment" Link in the Basic trails, and then whichever one applies.
    http://java.sun.com/docs/books/tutorial/

  • Where do I find the Package and Deployment options in CF Admin 8 and 9?

    I've recently talked to a person at Adobe and found documentation on migrating using the Package and Deployment option to create CAR files. I just can't seem to find the menu options in my CF8 or CF9 Admin. I am running CF standard. I do have around 40+ datasources and a couple of dozen scheduled tasks that I need to move.
    I just need someone to point out to me how to get to the Package and Depoymeny section.
    Warmest regards,
    David Miller

    Standard doesn't have this feature.  You need to be running Enterprise or Developer (see http://www.adobe.com/products/coldfusion/editions/).
    You can revert to developer temporarily by removing your licence key, do the archive, put the key back in again ;-)
    Adam

  • Packaging and Deploying Programs

    I started using NetBeans as my IDE. How do I package and deploy a program. i.e. send it to a friend and have them double click on the setup file to install the program automatically. Thank you in advance. Drew.

    google for installanywhere. java itself doesn't provide mechanisms for this, it's a bigger issue. you could also look at Apache Commons Launcher, or you could package the app into a jar or set of jars, and provide a shell script/batch file to run it. or, if you're up to it, write a native code launcher yourself for your target platform
    but ultimately, java is a platform-neutral (ish) language and runtime, and deployment is very much a platform-specific process

  • Packaging and Deploying Weblogic Application

    Hi,
    I am having trouble in deploying a Weblogic application. I made a Web
    application in Weblogic6.1 on Windows2000. The directory structure of my
    JSPs, Images and Servlets are as follows:
    JSPs - DefaultWebApp
    JavaBeans(not EJB)(these JavaBeans are used by the JSPs as well as the
    Servlet)
    - DefaultWebApp\Web-Inf\Classes\Servletspkg\Loginpkg,
    - DefaultWebApp\Web-Inf\Classes\Servletspkg\Workpkg, etc.
    HTML - DefaultWebApp
    Images - DefaultWebApp\Images
    Servlets - DefaultWebApp\Web-Inf\Classes\Servletspkg
    web.xml and weblogic.xml - DefaultWebApp\Web-Inf
    The Web application runs fine. Now I want to package the above Web
    application and deploy it under Solaris8 (Weblogic 6.1)( in another
    machine.) I am not able to do that. I would be grateful if you could let me
    know the steps involved in packaging and deploying.
    Thanks in advance.
    -Jaya

    Hi Michael,
    I deployed the webapp to the default webapp on solaris and it worked.
    Thanks!
    -Jaya
    "Michael Young" <[email protected]> wrote in message
    news:[email protected]...
    Hi.
    Hmm, hard to say.
    I notice in your deployment on Windows 2000 you deployed in the defaultwebapp,
    but on solaris you deploy in 'test' webapp. I suspect this is the root ofthe
    problem. Since you are having problems calling J2.jsp I wonder how youare
    calling it. When calling from the default webapp you don't need tospecify a
    webapp context in the url, but from test webapp you do (depending on howyou are
    calling it - full url vs relative url).
    So in summary consider 2 things:
    1. how are you calling J2.jsp that might be different than how you callthe
    servlet from J1.jsp?
    2. what happens if you deploy your webapp to the default webapp onsolaris? my
    guess is that this will work.
    Hope this helps,
    Michael
    Vikor wrote:
    Hi,
    I could finally deploy the web application on the Solaris machine. But I
    am
    not sure if I did the right thing. I followed the steps below:
    1.I created a folder "test" under "config/mydomain/applications"folder.
    2.I extracted the .war file in this folder which was successful.
    3.Then I tried to run the application with the URL
    http://localhost:7001/test
    4. I got "J1.jsp" (located in "test" folder) as I excpected. This pagecalls
    a servlet "ControllerServlet" located in folder
    "test/WEB-INF/classes/servletspkg"
    5. The servlet in turn calls another jsp page J2.jsp located in "test"
    folder. This call is failing. I am getting 404 file not found error.
    Please suggest what I should do.
    Thanks in advance,
    Best regards,
    Jaya
    "Michael Young" <[email protected]> wrote in message
    news:[email protected]...
    Hi.
    I need more detail here. When you say you can't deploy to solaris,
    what
    does
    that mean? Do you get any errors/exceptions while deploying? If soplease
    post the errors here. Or does it deploy ok but you can't access it?
    Michael
    Vikor wrote:
    Hi,
    I am having trouble in deploying a Weblogic application. I made a
    Web
    application in Weblogic6.1 on Windows2000. The directory structureof my
    JSPs, Images and Servlets are as follows:
    JSPs - DefaultWebApp
    JavaBeans(not EJB)(these JavaBeans are used by the JSPs as well asthe
    Servlet)
    - DefaultWebApp\Web-Inf\Classes\Servletspkg\Loginpkg,
    - DefaultWebApp\Web-Inf\Classes\Servletspkg\Workpkg,etc.
    >>>>
    HTML - DefaultWebApp
    Images - DefaultWebApp\Images
    Servlets - DefaultWebApp\Web-Inf\Classes\Servletspkg
    web.xml and weblogic.xml - DefaultWebApp\Web-Inf
    The Web application runs fine. Now I want to package the above Web
    application and deploy it under Solaris8 (Weblogic 6.1)( in another
    machine.) I am not able to do that. I would be grateful if you couldlet
    me
    know the steps involved in packaging and deploying.
    Thanks in advance.
    -Jaya--
    Michael Young
    Developer Relations Engineer
    BEA Support
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Packaging and Deployment

    I'm moving to a new system. It appears that the Cold Fusion
    Archives feature under Packaging and Deployment of the CF
    Administrator is the appropriate vehicle for this. However, there
    is no entry for Cold Fusion Archives under Packaging and
    Deployment. I'm running MX7, Standard Version. Is this not in the
    Standard Version?
    If so, what's the best path for moving a
    configuration?

    A ColdFusion Archives demo video has been posted here: http://www.youtube.com/watch?v=HGrbOJl8RwA
    Associated blog entry is here: http://blogs.coldfusion.com/post.cfm/a-new-video-on-coldfusion-10-archives-is-posted-on-yo utube-channel
    Thanks,
    -Aaron

  • Need ant script to compile, package, and deploy to Oracle AS 10.3.1

    I have a test app with ADF faces/jsf for front-end and EJB 3.0 Session Facade/Entity beans for back-end. The project structure/layout is similar to the SRDEMO app in JDeveloper. I was able to compile, package, and deploy within JDeveloper 10g to Oracle AS 10g successfully. Is there a sample ant script to compile, package, and deploy to Oracle AS 10g that I can run from command line? The build.xml that came with SRDEMO only do the compilation, not packaging and deployment. I was able to modify the SRDEMO's build.xml to compile my test app though. I still need the script to package and deploy it.
    Thanks,

    Hi,
    How are you referring to the class path. I have created my custom build file and I refer like this.
    <path id="classpath">
      <pathelement location="${oracle.home}/lib/aia.jar"/>
      <pathelement location="${oracle.common.home}/modules/org.apache.commons.logging_1.0.4.jar"/>
    </path> oracle.home is the location where my aia.jar resides.
    In the compile-classes target I have
    <!--Target for Class path details -->
    <target name="compile-classes">
      <mkdir dir="${sca-inf.classes.dir}"/>
      <javac destdir="${sca-inf.classes.dir}"   classpathref="classpath"
             debug="on"                         nowarn="${javac.nowarn}"
             deprecation="${javac.deprecation}" encoding="Cp1252"
             source="1.6"                       target="1.6">
        <src path="${src.dir}"/>
      </javac> 
    </target> Regards,
    Neeraj Sehgal

  • EJB Web Services Packaging and Deployment

    I am new to Web Services on WebLogic as all my experience of Web Services have been on Apache Axis. My first question that I have an EJB that I would like to expose some of it's methods via a Web Service but the EJB is a part of an already deployed, or at least it's an external EJB of an existing app, how do I package and deploy my web service so that it interacts with the EJB properly but doesn't have to modify the existing application? Thanks, Jeremy

    Hello,
    Which version of EJB are you using? (EJB3 or 2.x)
    If you are using EJB3 you can directly expose your EJB as WS using annotations see the EJB3 page.
    The the binding coule be done with a simple java Proxy or a @WebServiceRef resource reference to a Java class.
    Are you using ADF ?
    If you are using ADF, the binding of the data source that could be an EJB or a Web Service is declarative using a data control
    - Learn ADF
    Regards
    Tugdual Grall

  • What i need to do during packaging and deploying?

    hello,
              what i need to do during packaging and deploying with my JSP,EJB,HTML
              files to the hosting company?
              if it is .java extension, do i only package the .class file without
              .java extension files?
              coz i dont want somebody copy my source code, then how?
              thanks a lot
              

    you dont need to send .java files
              package up your class files, jsp, images, jars etc into an ear file
              you may also want to check that your ISP supports weblogic applications
              "alex mok" <[email protected]> wrote in message
              news:[email protected]..
              > hello,
              > what i need to do during packaging and deploying with my JSP,EJB,HTML
              > files to the hosting company?
              > if it is .java extension, do i only package the .class file without
              > .java extension files?
              > coz i dont want somebody copy my source code, then how?
              >
              > thanks a lot
              

Maybe you are looking for

  • Newline character in report heading

    Hi all, I have an application that displays some testing information in a classic report. I have two groups for failed test, Major and Minor. I would like to have the column heading display like:   Major        Minor   Fails         Fails How would I

  • Passing parameter to Applet Dynamically

    Hi All, How can i pass the parameter to applet at the runtime? I want to play a video file. So 'm using one applet(I got this from JMF Documentation). Here is the Applet._ import java.applet.Applet; import java.awt.*; import java.io.File; import java

  • Hiding action button from  UWL default view

    Hi All, In our UWL, we have created a subview for mass approval of leave requests.In this case, the mass approval button is appearing in default view as well.We want the buttons to be restricted only to the subviews and should not be displayed in the

  • Variable naming convention

    In Java, variable names should not begin with a digit. Can any one tell me why this restriction is imposed?

  • Create subnumbers in a blocked class

    Hello, I have an asset class which cannot be used anymore that's why this has been blocked, but old assets in this class still exist. When somebody wants to create a subnumber for an asset from this class, it is not possible. How can this subnumber b