Problems deploying ear file created with ant build script

Hi All,
I'm using Jdeveloper 11G and Weblogic 10.3. When I build my application and run it within Jdeveloper, it works fine. However, we have a requirement to run ANT build script and create a deployable .ear file that can be manually deployed to any Weblogic Server.
I created my ant build script and it compiles/builds fine - the .ear file looks good. However, when I attempt to deploy it, it fails with
javax.faces.webapp.FacesServlet for servlet Faces Servlet could not be loaded because the requested class was not found in the classpath .
java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet.
     at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:551)
     at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1985)
     at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1959)
     at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1878)
     at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
     Truncated. see log file for complete stacktrace
>
<Nov 2, 2011 2:43:43 PM MDT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1320266599219' for task '3'. Error is: 'weblogic.application.ModuleException: [HTTP:101216]Servlet: "Faces Servlet" failed to preload on startup in Web application: "###"
I am not sure how to tell weblogic where to find the classes needed. I have a pretty huge classpath used when compiling - should I be putting the classpath in the manifest (?) - I don't think I should need to include the .jar files manually in the .ear file - since all the libraries should already be available in weblogic - or is that a misconception?
Please help!!

I answered my own question -
I had to manually add the following to the WEB-INF/lib to get the error to go away:
${ORACLE_HOME}/modules/javax.jsf_1.1.0.0_1-2.jar and
${ORACLE_HOME}/oracle_common/modules/oracle.jsf_1.2.9/glassfish.jsf_1.0.0.0_1-2-15.jar and
${ORACLE_HOME}/oracle_common/modules/oracle.jsf_1.2.9/glassfish.jstl_1.2.0.1.jar
that solved my problem. However, I think it'd be great if I could somehow just specify (in the weblogic-application.xml maybe?) that my application is using the above modules without having to copy the jar files into my WEB-INF/lib - any suggestions?
Thanks

Similar Messages

  • Ear file created with Sun's deploy tool

    Hello,
    When I create ear files with the Deploy Tool of Sun can I deploy the
    application directly, and it will work?
    Thank you
    Krisztian

    I want to deploy my application to IAS testdrive edition.
    "Krisztian Maraczi" <[email protected]> wrote in message
    news:9m56hk$[email protected]..
    Hello,
    When I create ear files with the Deploy Tool of Sun can I deploy the
    application directly, and it will work?
    Thank you
    Krisztian

  • Deploying an application with existing library as jar file created with ANT

    Hello All,
    I am having some trouble with a web application I am deploying to Tomcat. I have an custom library that works perfectly as a jar file included in the lib directory if I include all the jars that that library depends on into the lib directory also. What I would like to do is bundle the required jar files into my libraries jar file, but it failes to work when I do that.
    Any thoughts? Does Tomcat prevent this?
    I am using ANT to create my jar file, but when I look at the contents of my jar file it includes all the requested directories.
    My build.xml looks like this:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <project name="myapp" basedir="." default="jar">
    <property name="classes.dir" value="./classes"/>
    <property name="jar.dir" value="."/>
    <property name="java_lib.dir" value="../../../../../Program Files/Java/lib"/>
    <target name="jar">
    <jar destfile="${jar.dir}/${ant.project.name}.jar">
    <fileset dir="classes"/>
    <fileset dir="${java_lib.dir}" includes="jai_codec.jar.jar"/>
    <fileset dir="${java_lib.dir}" includes="xercesImpl.jar"/>
    <fileset dir="${java_lib.dir}" includes="mysql-connector-java-3.1.8-bin.jar"/>
    <fileset dir="${java_lib.dir}" includes="xmlParserAPIs.jar"/>
    <fileset dir="${java_lib.dir}" includes="mlibwrapper_jai.jar"/>
    <fileset dir="${java_lib.dir}" includes="xml-apis.jar"/>
    <fileset dir="${java_lib.dir}" includes="jai_core.jar"/>
    </jar>
    </target>
    <target name="run" depends="jar">
    <java jar="${jar.dir}/${ant.project.name}.jar" fork="true"/>
    </target>
    <target name="clean-build" depends="jar"/>
    <target name="main" depends="run"/>
    </project>
    Like I said...it includes these jar files in my jar file, but will not function properly with my tomcat app. If I exclude these jar files and include them seperately then everything works.
    NOTE: I do not access any of these libraries directly from any servlets, only from my classes.
    Thanks,
    J-Rod

    This probably isn't posted on the correct forum. This JVM forum is for discussing issues related to running java in an Oracle database using the OJVM, Oracle's embedded java VM. Possibly you are trying to use OJVM through JDEV but that isn't clear from your post and I don't believe that the error you are reporting would occur in that case. If it did or if you are in fact trying to run client java via JDEV the problem would be a JDEV rather than OJVM issue and so the JDEV forum,
    JDeveloper and ADF
    is the correct one to use.

  • Problem deploying ear file containing rar file

    Hi all,
    I am trying to deploy an ear on WAS 6.3 through a standalone application by using Deploy Service( with the help of File Transfer API). This ear contains rar file which has some jars, ra.xml and connector-j2ee-engine.xml. During deployment, the following error message is displayed:
    Rollback during generation, because : com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception during generation of components of application sap.com/ASAP_SAP_1_0_profile8_ear in container connector15.
    com.sap.engine.services.deploy.DeployResourceBundle#Exception in operation with application .#2#deploy#sap.com/ASAP_SAP_1_0_profile8_ear
    Operation deploy over application sap.com/ASAP_SAP_1_0_profile8_ear finished with errors on server 1590450. For more detailed information see traces of Deploy Service
    Operation deploy on application sap.com/ASAP_SAP_1_0_profile8_ear finished in whole cluster for 3125 ms
    com.sap.engine.services.deploy.DeployResourceBundle#Cannot deploy application .#1#sap.com/ASAP_SAP_1_0_profile8_ear
    com.sap.engine.services.rmi_p4.DispatchImpl->throwException  MSG:P4 Call execution: Exception in execute operation :<deploy(java.lang.String,java.lang.String[],java.util.Properties)>
    Can anyone come up with some solution for this? Also where can I find traces of Deploy Service on WAS?
    Thanks in advance,
    Pavithra

    Hi Pavithra,
             Try these links which provides solution for traces like <i>Cannot deploy application</i>.
    1. No Container Available For J2EE Module
    http://help.sap.com/saphelp_nw04/helpdata/en/5f/3733418bb16e24e10000000a155106/frameset.htm
    2. Unable to deploy ... ( Similar SDN Thread )
    unable to deploy message driven beans
    Hope it helps.
    Kindly reward points if it helps by clicking the star on the left hand side of the screen.
    Regards,
    Maheswaran.B

  • ANT build script to deploy .EAR file SAP NetWeaver Web Application Server

    Can any one please tell me to deploy the .ear file with ANT build script in SAP NetWeaver Web Application Server.
    Thanks in advance.
    Regards,
    Venkat.

    Try these threads:
    Re: Is there a way to start a J2EE application per command line?
    Scripted WAS App Start Stop Deploy

  • Error during deploying *.ear to sap using ant

    I want to  deploy ear to sap with ant script,but it can not work.The error information as follows,can anybody give me some advice if you had the similar error,thanks.
    C:\usr\sap\LJ1\J00\j2ee\deployment\ant>ant -f example_build.xml deploy -v
    Apache Ant version 1.7.0 compiled on December 13 2006
    Buildfile: example_build.xml
    Detected Java version: 1.6 in: D:\Java\jdk1.6.0_18\jre
    Detected OS: Windows 2003
    parsing buildfile C:\usr\sap\LJ1\J00\j2ee\deployment\ant\example_build.xml with
    URI = file:/C:/usr/sap/LJ1/J00/j2ee/deployment/ant/example_build.xml
    Project base dir set to: C:\usr\sap\LJ1\J00\j2ee\deployment\ant
    parsing buildfile jar:file:/D:/Perforce/tools/ant1.7.0/lib/ant.jar!/org/apache/t
    ools/ant/antlib.xml with URI = jar:file:/D:/Perforce/tools/ant1.7.0/lib/ant.jar!
    /org/apache/tools/ant/antlib.xml
    [property] Loading C:\usr\sap\LJ1\J00\j2ee\deployment\ant\cfg\ant.properties
    Build sequence for target(s) `deploy' is [deploy]
    Complete build sequence is [deploy, import_ear, undeploy, params, ]
    deploy:
    [sapdeploy] Starting deployment with the following properties:
    [sapdeploy] Version Handling Rule: all
    [sapdeploy] Error Handling Strategies: [error action: 'prerequisites', error str
    ategy: 'stop', error action: 'deploy', error strategy: 'stop']
    [sapdeploy] The targeted SAP J2EE Engines are: [server host: 'localhost', server
    port '50004', user name 'Administrator'.]
    [sapdeploy] Deploy timeout: null
    [sapdeploy] Starting to validate the data...
    [sapdeploy] Validation ended
    [sapdeploy] root dir c:\temp
    [sapdeploy] Selected archives for deployment:
    [sapdeploy] 1: 'c:\temp\dataservices-samples.war'
    [sapdeploy] 2: 'c:\temp\test.ear'
    [sapdeploy] Starting validation for the engine 'server host: 'localhost', server
    port '50004', user name 'Administrator'.'
    [sapdeploy] Engine data validated successfully
    [sapdeploy] Starting deployment for the engine 'server host: 'localhost', server
    port '50004', user name 'Administrator'.'
    [sapdeploy] An error occured during the deployment.
    [sapdeploy] The result of the deployment is: Error
    [sapdeploy] Deployment ended
    BUILD SUCCESSFUL
    Total time: 0 seconds

    The problem has been resolved,I make a stupid mistake.The reason caused the error is  that the  user of server was locked.I hope these will be helpful for people troubled by the same mistake.

  • Error in deploying EAR file

    hi experts,
    iam trying to deploy EAR file created using NWDS, when i am trying to deploy in XI server i am getting the following error,
    can any one solve my problem.
    Deploy of the ear has errors :
    java.rmi.RemoteException: Cannot deploy application sap.com/ldaptofileear..
    Reason: Errors while compiling:
    E:/usr/sap/BWS/DVEBMGS00/j2ee/cluster/server0/apps/sap.com/ldaptofileear/EJBContainer/temp/temp1209360116023/com/sap/aii/proxy/xiruntime/core/_AbstractProxyInboundRemote4ObjectImpl0_0_Tie.java:98: illegal escape character
    if (method.equals("U0024messageSpecifier")) {
    regards,
    Madhav Poosarla.

    hi prateek,
    i have not used this below code in my java proxy code
    if (method.equals("U0024messageSpecifier")) {
    but while i am deploying the java proxy, it is showing
    the following  path
    E:/usr/sap/BWS/DVEBMGS00/j2ee/cluster/server0/apps/sap.com/ldaptofileear/EJBContainer/temp/temp1209360116023/com/sap/aii/proxy/xiruntime/core/_AbstractProxyInboundRemote4ObjectImpl0_0_Tie.java:98: illegal escape character
    and giving this error
    Deploy of the ear has errors :
    java.rmi.RemoteException: Cannot deploy application sap.com/ldaptofileear..
    Reason: Errors while compiling:
    plz check this error
    regards,
    Madhav

  • When is the ear file created , is it on deploy or when the project is built

    When is the ear file created , is it on deploy or when the project is built
    in which case whats the path on the file system??

    Hi Saket,
       The ear file is created when you do the following. DC Build of the project, Deploy and Run application, Deploy when there are changes made after last deployment, When you deploy for the first time, Create Archive option etc.
       A sample path of the ear file is as follows
    Workspace\CE711SP1.jdi\LocalDevelopment\DCs\demo.sap.com\actionvalidationtest\_comp\gen\default\deploy
    @Siva Thanks for pointing out the mistake. A Webdynpro build or rebuild will not create the ear file. But a DC build will create the ear file though. I have corrected my post.
    Hope this helps,
    Sanyev
    Edited by: Sanyev Babu on Feb 15, 2009 10:25 PM

  • How to deploy EAR file in Tomcat?

    Is we can deploy ear file in tomcat?
    Normally we can deploy WAR file in tomcat webapps folder. When we run the tomat it will automatically extract the war file.
    But samethink I have tried EAR file. But it is not working.
    Is we can deploy EAR file or not?
    If not plz give reason.

    Hi
    Normally we can deploy the war file thats routene stuff ofcourse ..........but when u deploy ear file it will give problmes as ear structure and war structure are differeant
    The Tomcat Servlet/JSP Container      
    The Apache Tomcat 5.5 Servlet/JSP Container
         Apache Logo
    Links
    * Docs Home
    Contents
    * Contents
    * Introduction
    * Installation
    * Deployment
    * Source Code
    * Processes
    * Example App
    Application Developer's Guide
    Deployment
         Printer Friendly Version
    print-friendly
    version
    Background
    Before describing how to organize your source code directories, it is useful to examine the runtime organization of a web application. Prior to the Servlet API Specification, version 2.2, there was little consistency between server platforms. However, servers that conform to the 2.2 (or later) specification are required to accept a Web Application Archive in a standard format, which is discussed further below.
    A web application is defined as a hierarchy of directories and files in a standard layout. Such a hierarchy can be accessed in its "unpacked" form, where each directory and file exists in the filesystem separately, or in a "packed" form known as a Web ARchive, or WAR file. The former format is more useful during development, while the latter is used when you distribute your application to be installed.
    The top-level directory of your web application hierarchy is also the document root of your application. Here, you will place the HTML files and JSP pages that comprise your application's user interface. When the system administrator deploys your application into a particular server, he or she assigns a context path to your application (a later section of this manual describes deployment on Tomcat). Thus, if the system administrator assigns your application to the context path /catalog, then a request URI referring to /catalog/index.html will retrieve the index.html file from your document root.
    Standard Directory Layout
    To facilitate creation of a Web Application Archive file in the required format, it is convenient to arrange the "executable" files of your web application (that is, the files that Tomcat actually uses when executing your app) in the same organization as required by the WAR format itself. To do this, you will end up with the following contents in your application's "document root" directory:
    * *.html, *.jsp, etc. - The HTML and JSP pages, along with other files that must be visible to the client browser (such as JavaScript, stylesheet files, and images) for your application. In larger applications you may choose to divide these files into a subdirectory hierarchy, but for smaller apps, it is generally much simpler to maintain only a single directory for these files.
    * /WEB-INF/web.xml - The Web Application Deployment Descriptor for your application. This is an XML file describing the servlets and other components that make up your application, along with any initialization parameters and container-managed security constraints that you want the server to enforce for you. This file is discussed in more detail in the following subsection.
    * /WEB-INF/classes/ - This directory contains any Java class files (and associated resources) required for your application, including both servlet and non-servlet classes, that are not combined into JAR files. If your classes are organized into Java packages, you must reflect this in the directory hierarchy under /WEB-INF/classes/. For example, a Java class named com.mycompany.mypackage.MyServlet would need to be stored in a file named /WEB-INF/classes/com/mycompany/mypackage/MyServlet.class.
    * /WEB-INF/lib/ - This directory contains JAR files that contain Java class files (and associated resources) required for your application, such as third party class libraries or JDBC drivers.
    When you install an application into Tomcat (or any other 2.2/2.3-compatible server), the classes in the WEB-INF/classes/ directory, as well as all classes in JAR files found in the WEB-INF/lib/ directory, are made visible to other classes within your particular web application. Thus, if you include all of the required library classes in one of these places (be sure to check licenses for redistribution rights for any third party libraries you utilize), you will simplify the installation of your web application -- no adjustment to the system class path (or installation of global library files in your server) will be necessary.
    Much of this information was extracted from Chapter 9 of the Servlet API Specification, version 2.3, which you should consult for more details.
    Shared Library Files
    Like most servlet containers, Tomcat 5 also supports mechanisms to install library JAR files (or unpacked classes) once, and make them visible to all installed web applications (without having to be included inside the web application itself. The details of how Tomcat locates and shares such classes are described in the Class Loader HOW-TO documentation. For the purposes of our discussion, there are two locations that are commonly used within a Tomcat 5 installation for shared code:
    * $CATALINA_HOME/common/lib - JAR files placed here are visible both to web applications and internal Tomcat code. This is a good place to put JDBC drivers that are required for both your application and internal Tomcat use (such as for a JDBCRealm).
    * $CATALINA_BASE/shared/lib - JAR files placed here are visible to all web applications, but not to internal Tomcat code. This is the right place for shared libraries that are specific to your application.
    Out of the box, a standard Tomcat 5 installation includes a variety of pre-installed shared library files, including:
    * The Servlet 2.4 and JSP 2.0 APIs that are fundamental to writing servlets and JavaServer Pages.
    * An XML Parser compliant with the JAXP (version 1.2) APIs, so your application can perform DOM-based or SAX-based processing of XML documents.
    Web Application Deployment Descriptor
    The description below uses the variable name $CATALINA_HOME to refer to the directory into which you have installed Tomcat 5, and is the base directory against which most relative paths are resolved. However, if you have configured Tomcat 5 for multiple instances by setting a CATALINA_BASE directory, you should use $CATALINA_BASE instead of $CATALINA_HOME for each of these references.
    As mentioned above, the /WEB-INF/web.xml file contains the Web Application Deployment Descriptor for your application. As the filename extension implies, this file is an XML document, and defines everything about your application that a server needs to know (except the context path, which is assigned by the system administrator when the application is deployed).
    The complete syntax and semantics for the deployment descriptor is defined in Chapter 13 of the Servlet API Specification, version 2.3. Over time, it is expected that development tools will be provided that create and edit the deployment descriptor for you. In the meantime, to provide a starting point, a basic web.xml file is provided. This file includes comments that describe the purpose of each included element.
    NOTE - The Servlet Specification includes a Document Type Descriptor (DTD) for the web application deployment descriptor, and Tomcat 5 enforces the rules defined here when processing your application's /WEB-INF/web.xml file. In particular, you must enter your descriptor elements (such as <filter>, <servlet>, and <servlet-mapping> in the order defined by the DTD (see Section 13.3).
    Tomcat Context Descriptor
    The description below uses the variable name $CATALINA_HOME to refer to the directory into which you have installed Tomcat 5, and is the base directory against which most relative paths are resolved. However, if you have configured Tomcat 5 for multiple instances by setting a CATALINA_BASE directory, you should use $CATALINA_BASE instead of $CATALINA_HOME for each of these references.
    A /META-INF/context.xml file can be used to define Tomcat specific configuration options, such as loggers, data sources, session manager configuration and more. This XML file must contain one Context element, which will be considered as if it was the child of the Host element corresponding to the Host to which the The Tomcat configuration documentation contains information on the Context element.
    Deployment With Tomcat 5
    In order to be executed, a web application must be deployed on a servlet container. This is true even during development. We will describe using Tomcat 5 to provide the execution environment. A web application can be deployed in Tomcat by one of the following approaches:
    * Copy unpacked directory hierarchy into a subdirectory in directory $CATALINA_HOME/webapps/. Tomcat will assign a context path to your application based on the subdirectory name you choose. We will use this technique in the build.xml file that we construct, because it is the quickest and easiest approach during development. Be sure to restart Tomcat after installing or updating your application.
    * Copy the web application archive file into directory $CATALINA_HOME/webapps/. When Tomcat is started, it will automatically expand the web application archive file into its unpacked form, and execute the application that way. This approach would typically be used to install an additional application, provided by a third party vendor or by your internal development staff, into an existing Tomcat installation. NOTE - If you use this approach, and wish to update your application later, you must both replace the web application archive file AND delete the expanded directory that Tomcat created, and then restart Tomcat, in order to reflect your changes.
    * Use the Tomcat 5 "Manager" web application to deploy and undeploy web applications. Tomcat 5 includes a web application, deployed by default on context path /manager, that allows you to deploy and undeploy applications on a running Tomcat server without restarting it. See the administrator documentation (TODO: hyperlink) for more information on using the Manager web application.
    * Use "Manager" Ant Tasks In Your Build Script. Tomcat 5 includes a set of custom task definitions for the Ant build tool that allow you to automate the execution of commands to the "Manager" web application. These tasks are used in the Tomcat deployer.
    * Use the Tomcat Deployer. Tomcat 5 includes a packaged tool bundling the Ant tasks, and can be used to automatically precompile JSPs which are part of the web application before deployment to the server.
    Deploying your app on other servlet containers will be specific to each container, but all containers compatible with the Servlet API Specification (version 2.2 or later) are required to accept a web application archive file. Note that other containers are NOT required to accept an unpacked directory structure (as Tomcat does), or to provide mechanisms for shared library files, but these features are commonly available.
    Copyright © 1999-2006, Apache Software Foundation

  • Compilation error when deploying EAR file on standalone OC4J...

    Hi All,
    I am getting the following error when trying to deploy an EAR File describing a web service from the Jdeveloper IDE to the stanalone OC4J server instance.
    ==========================================================
    Uploading file JavaWebServiceEmp-GetDates-WS.ear ...
    Application Deployer for JavaWebServiceEmp-GetDates-WS STARTS.
    Copy the archive to C:\Lester\Testing\JDev10.1.3\oc4j\j2ee\home\applications\JavaWebServiceEmp-GetDates-WS.ear
    Initialize C:\Lester\Testing\JDev10.1.3\oc4j\j2ee\home\applications\JavaWebServiceEmp-GetDates-WS.ear begins...
    Unpacking JavaWebServiceEmp-GetDates-WS.ear
    Done unpacking JavaWebServiceEmp-GetDates-WS.ear
    Unpacking WebServices.war
    Done unpacking WebServices.war
    Initialize C:\Lester\Testing\JDev10.1.3\oc4j\j2ee\home\applications\JavaWebServiceEmp-GetDates-WS.ear ends...
    Starting application : JavaWebServiceEmp-GetDates-WS
    Initializing ClassLoader(s)
    Initializing EJB container
    Loading connector(s)
    Starting up resource adapters
    Initializing EJB sessions
    Committing ClassLoader(s)
    Initialize WebServices begins...
    Initialize WebServices ends...
    Started application : JavaWebServiceEmp-GetDates-WS
    Binding web application(s) to site default-web-site begins...
    Binding WebServices web-module for application JavaWebServiceEmp-GetDates-WS to site default-web-site under context root JavaWebServiceEmp-GetDates-context-root
    Operation failed with error:
    Error compiling :C:\Lester\Testing\JDev10.1.3\oc4j\j2ee\home\applications\JavaWebServiceEmp-GetDates-WS\WebServices: compilation error occurred
    Deployment failed
    Elapsed time for deployment: 1 minute, 50 seconds
    ==========================================================
    Please could somebody help me out with this? Basically I am not able to understand how to deploy the EAR file created under the MyWork folder under jdeveloper\jdev to the applications folder of j2ee\home. I am new to both EAR deployment as well as web services and would like to get a good understanding of the working of a web service which includes SOAP components and the like.
    Any help with regards to building and deploying a web service on standalone OC4J would be appreciated. Thanks a lot.

    Initially I followed the following steps to start up OC4J:-
    Settings :-
    1) Jdeveloper is setup under C:\Lester\Testing as Jdev10.1.3 folder
    2) I downloaded the extended oc4j zip folder and unzipped it under a new folder oc4j at the location C:\Lester\Testing\Jdev10.1.3
    Steps followed to run oc4j and deploy application
    1) Setup a standalone oc4j from the jdeveloper ide giving C:\Lester\Testing\Jdev10.1.3\oc4j as the root folder for oc4j.
    2) While doing step 1 added password and deployed it. Changed server.xml under C:\Lester/Testing/JDev10.1.3/oc4j/j2ee/home/config
    to include the following:-
    <shared-library name="global.libraries" version="1.0" library-compatible="true">
    <code-source path="C:\Lester/Testing/JDev10.1.3/oc4j/j2ee/home/applib"/>
    </shared-library>
    AND
    <java-compiler name="javac" in-process="false" options="-J-Xmx1024m -encoding UTF8" bindir="C:\Jdeveloper\jdk" extdirs="C:\Jdeveloper/jdk" />
    3) Opened a command prompt and went to the location C:\Lester\Testing\JDev10.1.3\oc4j\j2ee\home and ran the following command:-
    --> java -jar oc4j.jar
    4) Deployment: Then I deployed my primewebservice application from command prompt at C:\Lester\Smart Cylinder\Example code\prime\PrimeNumberService>
    using:-
    --> java -jar C:\Lester/Testing/JDev10.1.3/oc4j/j2ee/home/admin.jar ormi://172.20.13.164:8888 oc4jadmin welcome -deploy -file PrimeNumberService.ear -deploymentName DocStyleWebService
    5) Web Binding: Then I bound my primewebservice application from command prompt at C:\Lester\Smart Cylinder\Example code\prime\PrimeNumberService>
    using:-
    --> java -jar C:\Lester/Testing/JDev10.1.3/oc4j/j2ee/home/admin.jar ormi://172.20.13.164:8888 oc4jadmin welcome -bindWebApp DocStyleWebService PrimeNumberService_web http-web-site /docws
    6) Steps 4 and 5 went through without error.
    7) However when trying to access the web service using the following link I get the standard HTTP 404 (Page not found) error:-
    http://localhost:8888/docws/prime
    This was before I tried deploying the web service through jdeveloper IDE.
    I had tried the document web service given at the following link:-
    http://www.oracle.com/technology/sample_code/tech/java/codesnippet/webservices/docservice/index.html
    from the web services how to links
    http://www.oracle.com/technology/sample_code/tech/java/codesnippet/webservices/index.html
    Please could somebody help me out? Also periodically I recieve the ojc.exe not found error when trying to deploy an application using jdeveloper ide. There are two conflicting jdeveloper versions one comes with this exe and one without.
    Message was edited by:
    Lester N

  • Error while re deploying  .ear  file in  .eap project

    Hi Every one,
    i developed ejb module ,It Exposed to as Webservice .
    I Deployed  .ear file into server  got result  successfully.
    Now i made changes in EJb module by adding some other methods .
    Then i perform  build a Ejb Archive, EAp project Archive.
    Next deployed  into server .
    getting error  as follow.
    Application alias [WebServiceNew/Config1] for application [sap.com/MA_EAR] already exists in the HTTP Provider Service
    what are the things i need to change for getting sucess.

    hi ,
         go to the undeploy perspective, and select ur web services , add to the undeploy list and undeploy it .
    delete the webservice model and generate the code , build and deploy it again to the server.
    hope ur problem get resolved
    thanks and regards

  • Deploying EAR files in PI 7.1

    Hello,
    we are currently upgrading our XI 3.0 system to PI 7.1.
    We had developed some adapter modules for XI 3.0 and we have compiled them with new libraries for using in PI 7.1.
    But how can we deploy the created EAR-files in PI 7.1 now?
    In XI 3.0 we used the Visual Administrator for Deploying. But we can't use this tool any more.
    The SAP Netweaver Administrator doesn't have such a feature (we didn't find it anyway until now).
    The only thing I found was to deploy EAR-Files using Developer Studio. But we can't deploy EAR files in test and production system this way.
    Does anybody know an easy way to deploy EAR files in PI 7.1 (like in XI 3.0)?
    Regards,
    Thorsten

    Hi Sean,
    Definitely it is possible to use JSPM to deploy ear files in PI 7.1 (at least SP06). When you open up JSPM tool you will have to select "Hot Fixes" and then next. The file will have to be copied to the following Unix directory /<transport directory>/EPS/in. Unfortunately if the file is already deployed and you want to deploy it again with the same version but changes, you will not be able to redeploy it. For that propose you can use the scripts under unix ../j2ee/deployment/scripts. please have a lock under: http://help.sap.com/saphelp_nwpi71/helpdata/EN/46/1bd4293d034f08e10000000a114a6b/content.htm. There you will also find a script to convert an EAR file to SDA.
    Regards,
    Toni

  • Error while deploying EAR file through SDM

    Hi All,
    I am deploying EAR file through SDM. Its taking too much time to deploy in the 3rd stage (its just a simple hello file for testing purpose and its still in that stage for 2 hours).
    When I see the log, I can see some fata error. Please suggest me what should I do. 
    ==
    Oct 15, 2008 4:31:44 PM  Info: SDM started successfully.
    Oct 15, 2008 4:33:21 PM  Info: Opened client connection to sapretail (IP address
    sapretail/172.20.177.203, remote port 58645)
    Oct 15, 2008 4:33:23 PM  Info: Request for Logon as admin accepted
    Oct 15, 2008 4:39:07 PM  Info: Loading archive '/usr/sap/trans/EPS/sap.comwdtu
    torial~ex1.ear'
    Oct 15, 2008 4:40:50 PM  Info: Actions per selected component:
    Oct 15, 2008 4:40:50 PM  Info: Initial deployment: Selected development componen
    t 'wd/tutorial/ex1'/'sap.com'/'LOKAL'/'0.2008.10.14.12.51.57' will be deployed.
    Oct 15, 2008 4:44:41 PM  Info: Saved current Engine state.
    Oct 15, 2008 4:44:48 PM  Fatal: State BeforeNextDeployment can't process event I
    nitiateDeployment
    The reason I am doing through SDM because while deploying through NWDS its throwing an error
    Oct 13, 2008 12:44:41 PM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [001]Deployment aborted
    Settings
    SDM host : sapretail
    SDM port : 50118
    URL to deploy : file:/C:/DOCUME1/231477/LOCALS1/Temp/temp41002sap.comwdtutorial~ex1.ear
    Deployment exception : Server sapretail did not accept login request as admin on port 50118. Details: ERROR: Could not establish connection to server sapretail at port 50118: sapretail
    Inner exception was :
    Server sapretail did not accept login request as admin on port 50118. Details: ERROR: Could not establish connection to server sapretail at port 50118: sapretail
    Please suggest a solution.
    Regards,
    Jitender

    Now, when I deploy through NWDS, I get the following error.
    Result
    => deployment aborted : file:/C:/DOCUME1/231477/LOCALS1/Temp/temp51346sap.comwdtutorial~ex1.ear
    Aborted: development component 'wd/tutorial/ex1'/'sap.com'/'LOKAL'/'0.2008.10.15.21.04.16':Caught exception while checking the login credentials for SAP J2EE Engine. Check whether the SAP J2EE Engine is up and running.com.sap.engine.deploy.manager.DeployManagerException: ERROR: Cannot connect to Host: [sapretail] with user name: [J2EE_ADMIN]                     Check your login information.                     Exception is: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: Cannot authenticate the user.] (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.checkLoginCredentials.DMEXC)
    Deployment exception : The deployment of at least one item aborted

  • Error in SDM while deploying EAR file

    Hi all,
    We are getting an error in SDM tool while deploying EAR file.
    ===========================================================================
    Deployment started Fri Nov 28 14:11:01 CET 2008
    ===========================================================================
    Starting Deployment of syn_EAP
    The SDM will now start SAP Web AS Java instance processes in order to perform online deployment. After that the deployment will proceed.
    It could take some time, so please be patient.
    Aborted: development component 'syn_EAP'/'sap.com'/'localhost'/'2008.11.27.20.49.50'/'0':
    SDM could not start the J2EE cluster on the host iwdfvm2160! The online deployment is terminated. There is no clutser control instance running on host iwdfvm2160 which is described in SecureStorage . The instances, returned by MessageServer [MS host: iwdfvm2160; MS port: 3900], are :|Name:JM_T1227866087502_0_FCP11895            |Host:rp2399                          |State:5|HostAddress:10.34.38.76||Name:JM_T1227714760203_0_tx300-s3            |Host:tx300-s3                        |State:5|HostAddress:null||Name:JC_tx300-s3_ERP_10                      |Host:tx300-s3                        |State:5|HostAddress:10.34.33.45|Please check if there is an appropriate running cluster instances.
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).STARTUP_CLUSTER)
    Deployment of syn_EAP finished with Error (Duration 11782 ms)
    Can anyone help me regarding this issue?
    Thanks,
    Kalyan.

    Hi Prateek,
    thanks 4 reply.
    I did what you said but no luck.Its giving same error.
    Any other suggestions plz??
    Thanks,
    Kalyan.

  • How to deploy a webservice created with weblogic 7.0 on weblogic 6.1

    Hi,
    I've a created a webservice , deployed and tested it on weblogic 7.0.
    I want to deploy this webservice on weblogic 6.1. Do I need to deploy the .ear
    file created as an application on weblogic 6.1 and no other changes?
    I tried deploying the .ear as an application on weblogic 6.1, however when I try
    to access the webservice from my client application I get the following exception:
    java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
         at java.net.Socket.<init>(Socket.java:273)
         at java.net.Socket.<init>(Socket.java:100)
         at weblogic.webservice.binding.soap.HttpClientBinding.createSocket(HttpClientBinding.java:420)
         at weblogic.webservice.binding.soap.HttpClientBinding.createSocket(HttpClientBinding.java:398)
         at weblogic.webservice.binding.soap.HttpClientBinding.send(HttpClientBinding.java:247)
         at weblogic.webservice.core.handler.ClientHandler.handleRequest(ClientHandler.java:34)
         at weblogic.webservice.core.HandlerChain.handleRequest(HandlerChain.java:131)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:421)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:363)
         at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:225)
         at examples.webservices.basic.statelessSession.HelloWorldEJBPort_Stub.registerRequest(HelloWorldEJBPort_Stub.java:33)
         at webservice.client.RegisterRequest.registerRequestWebService(RegisterRequest.java:177)
         at webservice.client.RequestRegistrationWindow$WebServiceAction.actionPerformed(RequestRegistrationWindow.java:182)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216)
         at java.awt.Component.processMouseEvent(Component.java:3715)
         at java.awt.Component.processEvent(Component.java:3544)
         at java.awt.Container.processEvent(Container.java:1164)
         at java.awt.Component.dispatchEventImpl(Component.java:2593)
         at java.awt.Container.dispatchEventImpl(Container.java:1213)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
         at java.awt.Container.dispatchEventImpl(Container.java:1200)
         at java.awt.Window.dispatchEventImpl(Window.java:914)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
    Any idea on this...

    http://e-docs.bea.com/wls/docs61/webServices/index.html
    I believe there are examples in the kit too.
    Vinkal wrote:
    Thanks Don.
    Can you provide me some links guding how to create a webservice on weblogic 6.1
    Don Ferguson <[email protected]> wrote:
    That's not going to work. 7.0 is a major rewrite of the web services
    container, and it is not possible to create the web service on 7.0 and
    deploy it on 6.1.
    -Don
    Vinkal wrote:
    Hi,
    I've a created a webservice , deployed and tested it on weblogic 7.0.
    I want to deploy this webservice on weblogic 6.1. Do I need to deploy
    the .ear
    file created as an application on weblogic 6.1 and no other changes?
    I tried deploying the .ear as an application on weblogic 6.1, however
    when I try
    to access the webservice from my client application I get the following
    exception:
    java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
         at java.net.Socket.<init>(Socket.java:273)
         at java.net.Socket.<init>(Socket.java:100)
         at weblogic.webservice.binding.soap.HttpClientBinding.createSocket(HttpClientBinding.java:420)
         at weblogic.webservice.binding.soap.HttpClientBinding.createSocket(HttpClientBinding.java:398)
         at weblogic.webservice.binding.soap.HttpClientBinding.send(HttpClientBinding.java:247)
         at weblogic.webservice.core.handler.ClientHandler.handleRequest(ClientHandler.java:34)
         at weblogic.webservice.core.HandlerChain.handleRequest(HandlerChain.java:131)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:421)
         at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:363)
         at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:225)
         at examples.webservices.basic.statelessSession.HelloWorldEJBPort_Stub.registerRequest(HelloWorldEJBPort_Stub.java:33)
         at webservice.client.RegisterRequest.registerRequestWebService(RegisterRequest.java:177)
         at webservice.client.RequestRegistrationWindow$WebServiceAction.actionPerformed(RequestRegistrationWindow.java:182)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216)
         at java.awt.Component.processMouseEvent(Component.java:3715)
         at java.awt.Component.processEvent(Component.java:3544)
         at java.awt.Container.processEvent(Container.java:1164)
         at java.awt.Component.dispatchEventImpl(Component.java:2593)
         at java.awt.Container.dispatchEventImpl(Container.java:1213)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
         at java.awt.Container.dispatchEventImpl(Container.java:1200)
         at java.awt.Window.dispatchEventImpl(Window.java:914)
         at java.awt.Component.dispatchEvent(Component.java:2497)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
    Any idea on this...
    [att1.html]

Maybe you are looking for

  • Upgrading Macbook 2008 hard drive - ios concern

    Hi, I currently have a macbook white intel core 2 duo 2.1 GHz macbook, bought in October 2008, running snow lepaord 10.6.8. I am going to upgrade its hard drive to a hybrid seen in the following link: http://www.amazon.co.uk/Seagate-Momentus-ST950056

  • Java vulnerability on Internet Explorer?

    I've noticed that when I try to enter a certain site with Internet Explorer a Java written virus tries to attack me. Does anyone know anything about this? How can I fix it?

  • Images as visualizer

    Is there a plugin anyone knows of, or a technique that will allow the iTunes visualizer to run a folder of images in a slideshow. Just sort of curious, I know there are numerous otherways I could get the same effect. tim

  • What is the most desktop that a single dvi link can produce?

    Not to be confused with size, what is the most desktop space that can be achieved with a single dvi connection? Is it a 24" monitor with 1920 x 1200? jmf

  • Monitoring Ebiz suite

    I need some recommendations on the best tools to monitor Oracle on Linux. What do you use to monitor the database tier? The application tier? Jeff