How can i deploy a servlet with eclispe

Hello,
will any one of u give me the steps to deploy a servlet with eclipse on portal server(J2EE Engine),
in help of eclipse they given as, whole webapplication deployement, but that is also giving me a error, the procedure they given is, once we created a .war file for our servlet project we need to refer this to a .Ear file, and then this Ear can be deployed in to the server. Is it the same and only procedure to deploy a servlet with eclipse, or if there is any other method,please give me the steps also.
when i am deploying with the .Ear file, it is giving the error as,
Jun 4, 2005 11:34:31 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
[001]Deployment aborted
Deployment exception : Cannot determine sdm host (is empty). Please configure your engine/sdm correctly !
but the sdm is working on the server with the same host, and local deployement is also done successfully, but from my system im not able to deploy!
Thanks&Regards,
Sireesha.

Yeah, i am able to see the J2EE engine clusters, there the message server port is given as 3601. becoz scs instance number is 1 here. so it is not the problem,
the error it is giving as,
Jun 6, 2005 11:37:28 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
[001]Deployment aborted
Settings
SDM host : obtdev9
SDM port : 50018
URL to deploy : file:/C:/DOCUME1/sireesha.b/LOCALS1/Temp/temp56446MyServletEAR.ear
Deployment exception : Server obtdev9 did not accept login request as apiadmin on port 50018 - CmdXmlFactory could not find Top Element within String: "null".
Inner exception was :
Server obtdev9 did not accept login request as apiadmin on port 50018 - CmdXmlFactory could not find Top Element within String: "null".
is this may be the problem with port number?
i am not knowing what is happening here...
if you know the exact error based on the error messgae please help me,
thanks to u for helping in this problem,
Regards,
sireesha.

Similar Messages

  • How can I deploy a jar with directory entries using deploy profiles?

    Hi,
    I'm trying to deploy a jar file using deloy profiles, but the jar file deployed contains no directory entry. Why?
    Is it possible to do that using deploy profiles?

    my project looks like this:
    src +
     - test
         +- Main.java
         +- Test.java
    when I create a jar with 'jar -cf‘, I get something like this (with flat folders view):
    META-INF
    test
    Main.class
    MANIFEST.MF
    Test.class
    but when I use deploy profile to deploy a jar, I get this:
    Main.class
    MANIFEST.MF
    Test.class
    The directory entries are missing in the jar file.
    How can I fix this?
    Edited by: zeta on 2013-3-29 上午11:15
    Edited by: zeta on 2013-3-29 上午11:24
    Edited by: zeta on 2013-3-29 上午11:24
    Edited by: zeta on 2013-3-29 上午11:25
    Edited by: zeta on 2013-3-29 上午11:26

  • How can I run a servlet with Sun Java System Application Server PE 8?

    I've created a package with a TestServlet.class inside, used the deploytool to create a WAR and deployed this using the autodeploy folder.
    The filestructure has been generated and I find the TestServlet.class in
    [installdir]\domains\domain1\applications\j2ee-modules\testProject\WEB-INF\classes\[packagefolderstructure]\TestServlet.class.
    The context root is working fine, but I have no clue how I can run the servlet directly via the URL.
    I've tried many things like
    http://localhost:8080/testProject/TestServlet
    http://localhost:8080/testProject/servlet/TestServlet
    http://localhost:8080/testProject/servlet/[packagenamewithpoints]TestServlet
    http://localhost:8080/testProject/servlet/[packagenamewithslashes]TestServlet
    etc etc
    Can somebody tell me please how to write URLs to deployed servlets? Or send me an example url and xml descriptor files?
    Thanks a lot in advance!

    in web.xml use servlet mapping
    <servlet-mapping>
        <servlet-name>TestServlet</servlet-name>
        <url-pattern>/doit</url-pattern>
    </servlet-mapping>then use http://localhost:8080/testProject/doit

  • How can I run a servlet with tomcat

    I'm a new learner in servlet,I recently write a servlet program,when I compile it,the compiler throws the error
    "package javax.servlet.http does not exist",I have put the servlet.jar(which exist in d:\tomcat\bin directory) file into the classpath directory;my servlet source files are in D:\tomcat\webapps\mywork\web-inf\classes\com\stardeveloper\servlets;
    "com.stardeveloper.servlets" is the package for my servlet source files,so I have write the sentence "package com.stardeveloper.servlets;" in my servlet source file.
    I don't know how to resolve this problem.can you give me a help?

    servlet.jar doesn't exist in the folder you mentioned, but rather, in C:\tomcat40\common\lib, so this should be included in your classpath, the other thing you should care about is how you compiled your servlets, so that the package statement match the hirarchy of the file.
    regards

  • How can I deploy multiple fonts with the ProfileManager

    I tried to add more than just one Font using the ProfileManager on Mac OS X Server 3.1.1
    There appears just one line to add one Font file. Do I need to combine all my fonts into one file to deploy it?
    Don't see a way to add more Font Payloads.

    I spoke to Apple's Enterprise support today about this problem, and the representative said that he is going to report this "issue" to Engineering. Not sure what this means, but I thought I would let you know.
    If you are trying to deploy multiple fonts to iOS devices, they suggested that I use Apple Configurator, which is available for free in the Mac App Store...

  • How can I deploy jCom moniker Servlet on integration Domain?

    Hi All,
    I am trying to know, how can I deploy moniker servlet on integration
    domain. I know if I run moniker class at console I can see the moniker string.
    But, I want to deploy this sevlet in integration domain, unable to find any documentation
    or help. Does any one did this in the past?? looking for help...
    Thanks,
    Gary H.

    Yeah, i am able to see the J2EE engine clusters, there the message server port is given as 3601. becoz scs instance number is 1 here. so it is not the problem,
    the error it is giving as,
    Jun 6, 2005 11:37:28 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [001]Deployment aborted
    Settings
    SDM host : obtdev9
    SDM port : 50018
    URL to deploy : file:/C:/DOCUME1/sireesha.b/LOCALS1/Temp/temp56446MyServletEAR.ear
    Deployment exception : Server obtdev9 did not accept login request as apiadmin on port 50018 - CmdXmlFactory could not find Top Element within String: "null".
    Inner exception was :
    Server obtdev9 did not accept login request as apiadmin on port 50018 - CmdXmlFactory could not find Top Element within String: "null".
    is this may be the problem with port number?
    i am not knowing what is happening here...
    if you know the exact error based on the error messgae please help me,
    thanks to u for helping in this problem,
    Regards,
    sireesha.

  • How can I deploy a simple stateless ssion EJB and call it from a standalone client

    Hi,
    I'm creating s simple staless session EJB that has a method that takes a name and prints "Hello" + name. This EJB is in a package called "com.demos.mydemo.ejbs.hello"
    How can I deploy this to OC4J?
    How can I call it from a standalone client(no JSP, no servlets)?
    In Sun's J2EE is very easy to deploy and I don't have to know any XML stuff.
    can I use the .ear file created by the Sun's "deploytool" to deploy my EJB to OC4J?
    This is the code at I'm using and it works on Sun's j2sdkee1.2.1:
    ///////// Remote /////////
    package com.demos.mydemo.ejbs.hello;
    import java.rmi.RemoteException;
    import javax.ejb.EJBObject;
    public interface Hello extends EJBObject {
    public String sayHello(String name) throws RemoteException;
    ///////// Home //////////
    package com.demos.mydemo.ejbs.hello;
    import java.rmi.RemoteException;
    import javax.ejb.EJBHome;
    import javax.ejb.CreateException;
    public interface HelloHome extends EJBHome {
    public Hello create() throws CreateException, RemoteException;
    /////////// Bean class ///////////
    package com.demos.mydemo.ejbs.hello;
    import java.rmi.RemoteException;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    import javax.ejb.CreateException;
    import javax.ejb.EJBException;
    import java.sql.Connection;
    import java.sql.SQLException;
    //import java.sql.PreparedStatement;
    import javax.sql.DataSource;
    import javax.naming.NamingException;
    import javax.naming.InitialContext;
    public class HelloEJB implements SessionBean {
    private SessionContext context;
    private Connection con;
    private String dbName =
    "java:comp/env/jdbc/Oracle";
    public HelloEJB() {}
    public void setSessionContext (SessionContext context) {
    this.context = context;
    public void ejbCreate() throws CreateException {
    try {
    makeConnection();
    catch (Exception e) {
    System.err.println("HelloEJB: exception in ejbCreate:" + e.getMessage());
    e.printStackTrace();
    throw new CreateException(e.getMessage());
    public void ejbActivate() {
    public void ejbPassivate() {
    public void ejbRemove() {
    try {
    con.close();
    catch (SQLException ex) {
    throw new EJBException("HelloEJB: exception in ejbRemove: " + ex.getMessage());
    public String sayHello(String name) {
    return "Hello " + name;;
    private void makeConnection() throws NamingException, SQLException {
    try {
    InitialContext ic = new InitialContext();
    DataSource ds = (DataSource) ic.lookup(dbName);
    con = ds.getConnection();
    catch (Exception e) {
    System.err.println("HelloEJB: exception in makeConnection:" + e.getMessage() );
    e.printStackTrace();
    //////////// EJB client that uses a stateless session bean
    package com.demos.mydemo.ejbs.hello;
    import java.io.*;
    import java.sql.*;
    import javax.sql.*;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    public class HelloClient {
    public static void main(String[] args) {
    try {
    Context initial = new InitialContext();
    Object objref = initial.lookup("HelloSession");
    HelloHome home = (HelloHome)PortableRemoteObject.narrow(objref,HelloHome.class);
    Hello h = home.create();
    String msg = h.sayHello("John Doe");
    System.out.println(msg);
    //h.remove();
    } catch (Exception ex) {
    System.err.println("Caught an exception." );
    ex.printStackTrace();
    Thanks
    Nabil
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Nabil Khalil ([email protected]):
    I deployed and .ear file created by Sun's J2EE deployment tool on the OC4J. It looks that it was deployed fine -- did not get a deployment error.
    When I run the client I'm getting the following error: Caught an exception.
    javax.naming.CommunicationException: Can't find SerialContextProvider
    at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:60)
    at com.sun.enterprise.naming.SerialContext.<init>(SerialContext.java:79)
    at com.sun.enterprise.naming.SerialInitContextFactory.getInitialContext(SerialInitContextFactory.java:54)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
    at javax.naming.InitialContext.init(InitialContext.java:222)
    at javax.naming.InitialContext.<init>(InitialContext.java:178)
    at com.equifax.fms.ejbs.hello.HelloClient.main(HelloClient.java:18)
    This makes me think that the client can't see the deployed EJB on the OC4J.
    How can I fix this problem?
    Thanks
    Nabil
    <HR></BLOCKQUOTE>
    Nabil -
    Your standalone client needs to obtain certain server-dependent properties. You can provide them in your code or grab them via a properties file.
    For Orion - you need essentially the following setup, filling in your own information...
    Define your standalone client class with "main" etc (this is orion specific - should work for 9i AS as well - perhaps there are some differences)
    public class SomeClass {
    try {
    Properties p = new Properties();
    p.setProperty("java.naming.factory.initial",
    "com.evermind.server.ApplicationClientInitialContextFactory");
    p.setProperty("java.naming.security.principal","server_admin_name");
    p.setProperty("java.naming.security.credentials","server_password");
    // THEN you can get your intitial context reference
    InitialContext initial = new InitialContext (p);...........
    Then go about your business.....
    A good book to get is called "Professional Java Server Programming J2EE Edition" - there happens to be a reasonable amount of Orion/OCJ4 centric information since one of the authors is Karl Avedal - one of the principals behind Orion. Go out to java.sun.com and look at some of the J2EE tutorials - unfortunately a lot of it is hidden behind the J2EE Deployer, but you will get a good sense of what goes into outside-the-container standalone clients.
    null

  • How can i know the servlet is running or not?

    Hi all,
           I have a doubt regarding servlet. I created one servlet and deployed in server. Now i called (RUN) the servlet from the browser. And it is running. Now can i know that the servlet is running or not in the server without seeing in the browser. Can we know the status of the servlet with its URL in the server whether it is running or not?
             Let me explain my problem. In my servlet it will run continously read one table and  do some operation depending on the entries in that table. Now i called the servlet from the browser. After some time i closed the browser. If browser is there i can know whether servlet is running or not. But now how can i know that servlet is running or not. Becoz eventhough we closed the browser the servlet will run in the background. How can i achieve this?
    Thanks and Regards,
    VJR.

    Hi!
    With first call, the servlet will be loaded, and it remains so until server-shutdown, but you need a timer-mechanism execute method calls continuously.
    Regards,
    Thomas

  • How can i deploy macbooks and 802.1x authentication using PEAP/MSChap version 2

    How can i deploy macbooks and 802.1x authentication for wireless connectivity using PEAP/MSChap version 2. The Cert is generated by a 2008 Windows CA authority. I am trying to get to join but the MAC doesnt seem to want to accecpt the cert. Can i not validate the cert and still have it join the 802.1x wireless netqwotk? The wireless netwotk is using a Cisco 5508 wireless controller and Cisco 1142 access points. All works fine with Windows devices.

    Hi Tarik,
    Thanks for your answers,
    I've attached my configured AuthZ rules and AuthZ profile for provisioning,
    I want the process to be the same for iPhone, Android and Windows.
    1) Connect to the SSID
    2) Login using your AD credentials PEAP-MS-CHAP-v2
    3) Redirect to device registration portal (So I can set a limit of 3 devices per employee)
    4) As soon as the client click "register" no more redirects and PERMIT-ALL
    I think that I don't need to rely on profiling because In terms of AuthZ policies it should be something like this:
    1) if WIRELESS802.1x and PEAP-MS-CHAPV2 and BYODREGISTRATION=!YES(Unknown or not reg) then "Redirect to device registration(that is NSP right?)"
    2) if WIRELESS802.1x and PEAP-MS-CHAPV2 then PERMIT-ALL(no redirection)
    3) everything else = DENY-ALL
    But the NSP looks for Client Provisioning policies, so if I don't configure any policy it should Allow Network Access(See attachment photo3.png) but as I said on the post it shows that cannot retrieve the MAC-Address so the client can't register his device and don't have access to the network. (To grant access I've configured provisioning policies, that way the clients can register their devices but they are redirected to google play or are forced to install the profile at iOS and this is what I don't want because it is not necessary)
    What screenshoot do you need after the registration? the Auth report?
    Thank you very much for your time!

  • How can I replace the Portal with completely new Flash website?

    Can I replace the Portal with completely new Flash website? My customer do not want the JSP UI. Instead, he wants a completely new designed Flash site. Is it possible to do it? How can I deploy a new portal to cover the current one?

    If you have a look at some of the code examples which do the equivalent of site maps, you could in theory replace the whole portal desktop with some sort of Flash framework which reads the user's role structure at run time.
    I think it is useful to remember that the SAP portal is primarily a business application launchpad. It does that very well. Trying to make it into a Flash launchpad will be challenging.

  • How can I deploy the Operation find all

    Hello together,
    I have a big problem. 
    How can I deploy the operation find all so that I can see it in the WSNavigator.
    There I can just see the CRUD operations and if I try to select the operation in the Developer Studio ,when I expose the webservice, the operation is highlighted grey. But if I test the Service I can see the operation and it works.
    ?????? But why can I test the service with the operation find all and why is it not possible to see the operation in the WSNavigator.
    Thank you

    Hi Srinivasan;
    thanks a lot. I could solve the problem with my <Cars>. I just deleted it. Now I have just a warning - message.
    The code looks know like:
    @com.sap.caf.dt.CAFOperation(name="GetAllCars")
         public gennari.mhp.types.Ret_Cars GetAllCars() {
              Ret_Cars ret_cars = new Ret_Cars();
              try {
                   Collection docList = this.getcarsService().findAll();
                   ret_cars.setTest((List) docList);
              } catch (CAFFindException fe) {
              return ret_cars;
    But if I try to run the operation as a webservice in the webservice navigator I have following error message:
    "com.sap.engine.services.webservices.espbase.server.additions.exceptions.ProcessException "
    Is this a problem with my Java AS or is still something in my Application Service responible fort that???
    Thats the XML Content:
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <SOAP-ENV:Body>
        <SOAP-ENV:Fault>
          <faultcode>SOAP-ENV:Server</faultcode>
          <faultstring>com.sap.engine.services.webservices.espbase.server.additions.exceptions.ProcessException</faultstring>
          <detail>
            <yq1:com.sap.engine.services.webservices.espbase.server.additions.exceptions.ProcessException xmlns:yq1="http://sap-j2ee-engine/client-runtime-error">
              <!-- com.sap.engine.services.webservices.espbase.server.additions.exceptions.ProcessException -->
            </yq1:com.sap.engine.services.webservices.espbase.server.additions.exceptions.ProcessException>
          </detail>
        </SOAP-ENV:Fault>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Thank you
    Regards Marco

  • Help: How can I deploy my [TP4]  Applications in Simple Steps using OC4J 11

    deploy apps to OC4J standalone TP4
    Hi,
    I installed Oracle Continer OC4J 11 and Started OK
    but with this warning " J2EE JNDI-00002"
    Now : How can I deploy my Application pls in Simple Steps?
    is this link below Related to Version [TP4] or what ?
    http://www.oracle.com/technology/products/jdev/tips/muench/oc4j11gtp/index.html
    thanks
    Forakora

    Read this thread:
    Can Jdeveloper TP4 deploy apps to OC4J standalone TP4

  • How can i deploy Dictionary Application via commandline

    Hi all,
       I can deploy Ear files via commandline using deploymanager command.
    Now my problem is how can i deploy the Dictionary Application via command line.
    regards,
    Ramu.

    Hi Rajesh,
       Thankyou again for your reply.
       I didn't understand the procedure you explained above , how to use sdm.bat and deploy with the options.
      Can u tell me in details how can i don this step by step.
    I am having one Dictionary Project with the structure as follows:
    HelloDictionary1
    ->bin
    ->gen_ddic
    ->Model Folder
    ->src
    ->.classpath
    ->.metamodel
    ->.project
    ->.tssapinfo
    ->HelloDictionary1.sda
    Can u tell me arguments for the sdm.bat and how to run the deploy command in detail.
    Thankyou,
    Ramu.

  • How can I deploy EFS using Group Policy and automatically encrypt computers for ALL users who login?

    How can I deploy EFS using Group Policy and Active Directory with a goal to automatically encrypt computers for ALL users who login? (NOT an option for me to use BitLocker)
    I was asked to deploy EFS to encrypt the user my documents folder and profile on all of the users laptops. The laptops are in common areas (board meeting rooms, etc) and security of files is a must.
    I successfully created a recovery certificate in AD. I created an OU and setup an EFS policy and users can now login and select to encrypt their own files. The issue is that management would like to have automaticy Encrypt ALL users my documents AUTOMATICALLY
    when a user login.
    Can this be done?
    Please help

    Hi,
    Any update?
    Just checking in to see if the suggestions were helpful. Please let us know if you would like further assistance.
    Best Regards,
    Andy Qi
    TechNet Subscriber Support
    If you are
    TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here.
    Andy Qi
    TechNet Community Support

  • How can I deploy the EJB to the remote AP Server

    Dear All,
    Any one know how can I deploy an EJB to the AP server which is not located on the local machine, using Jdev9.0.3.1.
    I have try to new a connection with the server name and the testing connection section is successful, however when I deploy the EJB to that connection the error comes out as following:
    java.lang.InstantiationException: Illeagal values: min-instances is greater than max-instances
         at com.evermind.server.ejb.deployment.BeanDescriptor.parseOrionAttribute(BeanDescriptor.java:410)
         at com.evermind.server.ejb.deployment.ExposableBeanDescriptor.parseOrionAttribute(ExposableBeanDescriptor.java:352)
         at com.evermind.server.ejb.deployment.SessionBeanDescriptor.parseOrionAttribute(SessionBeanDescriptor.java:260)
         at com.evermind.sFatal Error: Illeagal values: min-instances is greater than max-instances
    erver.ejb.deployment.BeanDescriptor.parseOrionXML(BeanDescriptor.java:423)
         at com.evermind.server.ejb.deployment.SessionBeanDescriptor.parseOrionXML(SessionBeanDescriptor.java:265)
         at com.evermind.server.ejb.deployment.EJBPackage.parseOrionBean(EJBPackage.java:804)
         at com.evermind.server.ejb.deployment.EJBPackage.parseOrionEnterpriseBeans(EJBPackage.java:646)
         at com.evermind.server.ejb.deployment.EJBPackage.parseDeploymentMainNode(EJBPackage.java:455)
         at com.evermind.xml.XMLConfig.parseRootNode(XMLConfig.java:268)
         at com.evermind.xml.XMLConfig.init(XMLConfig.java:147)
         at com.evermind.server.ServerComponent.initDeployment(ServerComponent.java:305)
         at com.evermind.server.ServerComponent.copyAndDeploy(ServerComponent.java:374)
         at com.evermind.server.ServerComponent.initDeployment(ServerComponent.java:276)
         at com.evermind.server.ejb.EJBPackageDeployment.getPackage(EJBPackageDeployment.java:607)
         at com.evermind.server.administration.ServerApplicationInstallation.finish(ServerApplicationInstallation.java:464)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:80)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    Thank you very much!!

    Your question is a bit unclear.
    If you are referring to converting from using JInitiator to JRE, pl see MOS Doc 290807.1 (Deploying Sun JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite 11i).
    If you are referring to upgrading Java versions for use by EBS, pl see MOS Doc 401561.1 (Using J2SE Version 6 with Oracle E-Business Suite 11i).
    MOS Doc 300482.1 (Overview of Using Java with Oracle E-Business Suite Release 11i) gives an overview of Java usage with 11i.
    HTH
    Srini

Maybe you are looking for