Servlet deployment on iAS

Hi all,
I have been trying to deploy a servlet to iAS. I have done following steps:
1) Created jar with the class files of http servlet/ dbservlet
2) copied it to ..\iAS\Apache\Jserv\servlets
3) Tried to call the simple http servlet http://koivu.fincosta.com/servlets/test1.Servlet1 or http://koivu.fincosta.com/servlet/test1.Servlet1
and get http 404 error (page not found)
I have tried also to define a wrapper.classpath in the jserv.properties for the jar.
The JD's on-line manual is really confusing on this matter and haven't seen any example on OTN either.
I would be very gratefull if somebody could tell me the steps for correct servlet deployment for iAS.
Best regards,
null

sigh
google: "eclipse war". First result:
http://www.java-tips.org/other-api-tips/eclipse/how-to-make-war-file-in-eclipse.html
I don't know if this applies to your version of Eclipse, but I hope you get the idea that a knowledge problem is not a valid reason to post in a forum; you do a google query in stead. It is the difference between being lazy and passing the problem to someone else, or being a proper developer and doing some research.

Similar Messages

  • Applet class deployment to iAS?

    Can anyone help me with documentation/examples or suggestions on how to deploy my applet .class files to iAS. Once the .class files reside in the iAS, how do I reference the .class files located on the iAS in my html page? Assuming my .class files reside in jar files, what convention do I use when attempting to reference them on the iAS? Any help would be appreciated. Thanks.

    My experience with Together Control Center is not very
    good. If you are using iAS, the best tool to work is Forte for Java.
    It has very good support for Application developement,debugging and deployment on iAS.
    Please feel free to ask any further question

  • How to access contextRoot in Servlet deployed in an ear in Weblogic 81

    Hi,
    I need to access the contextRoot or webapp name from a startup servlet deployed in WebLogic. I've tried the following;
    getServletContext().getRealPath("/") return null.
    getServletContext().getServerInfo() returns Weblogic 8.1 service pack 3...
    getServletContext().getServletContextName() display the <display-name> value from my web.xml.
    What I want is the <context-root> value in the EARs application.xml.
    I tried the following JNDI lookup and the lookup failed but the error message contained the contextRoot.
    String name = (String) jndiContext.lookup("java:/comp/env/namespace");
    log.info("jndiContextlookup namespace = "+name);
    Any help would be GREATLY appreciated. This should be easy!!
    Shane

    Hi VR
    From Weblogic Admin Console, Deployments, on right side click on the link named with your EAR Application. It opens detailed page with more tabs. Click on the tab named Targets. Here select your WebService module and click on Change Targets button. Uncheck the server where it is targetted (Deployed), click on Yes. And activate the changes.
    Thanks
    Ravi Jegga

  • BIB-14820 Calling BI Beans JSP deployed to iAS 10g

    Hello,
    I have deployed a jsp-bi beans application to iAS 10g Release 2.
    When I try to access the jsp page I get this error:
    javax.servlet.jsp.JspException: BIB-14122: The specified StorageManager could not be created.
    BIB-14820 The root path does not exists.
    Is there something that needs to be set up so that my xml config file for bi beans connection
    can be accessed properly?
    This jsp works from jdeveloper.
    The .xml file with the bi beans connection configuration has a root path that I am pretty sure
    needs to be changed. How do I change that (my application is not based on OLAP and does not contain a BI Designer object) ? And what does it need to be changed to in order to work from my iAS?
    Thanks in advance.

    There are three scripts provided with BI Beans for managing the catalogue:
    AddGroup.sql
    AddUser.sql
    AddUsertoGroup.sql
    Once you have created the catalog owner and installed the catalog then from SQLPlus execute the above commands as required. Each script prompts you for any arguments it requires. This will allow you to authorise users and setup groups to manage privileges within the catalog.
    The scripts can be found in $ORACLE_JDEV_HOME/bibeans/bin
    You can check the status of the items within the catalog via the Catalog Viewer within the JDev BIBeans project, the option is on the BIDesigner object (I think) which should launch a GUI catalog viewer.
    Hope this helps
    Keith Laker
    Oracle EMEA Consulting
    OLAP Blog: http://oracleOLAP.blogspot.com/
    OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
    DM Blog: http://oracledmt.blogspot.com/
    OWB Blog : http://blogs.oracle.com/warehousebuilder/
    OWB Wiki : http://wiki.oracle.com/page/Oracle+Warehouse+Builder
    DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

  • Servlet deploy to 9ias

    Hi oracle team,
    I have a servlet in jdev903 run is OK but to deploy 9iAS
    903 ocour 500 Internal Server Error
    java.lang.UnsupportedClassVersionError: request/Servlet2 (Unsupported major.minor version 48.0)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
    is 9ias bug?
    package request;
    import javax.servlet.ServletException;
    import javax.servlet.http.*;
    import java.io.PrintWriter;
    import java.io.IOException;
    public class Servlet1 extends HttpServlet
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    out.println("<html>");
    out.println("<head><title>Servlet1</title></head>");
    out.println("<body>");
    out.println("<p>The servlet has received a GET. This is the reply.</p>");
    out.println("</body></html>");
    out.close();

    You should recompile your servlet against JDK 1.3, not JDK 1.4 (or upgrade your iAS to 9.0.4)
    [JDK 1.4 uses class file version 48.0]
    Rob
    Team JDev

  • Remote deployment from iAS to iAS

    Hello,
    I'm new to iAS and need some info/suggestions about deployment in this scenario:
    Host A (source) : 1.0.2.2.1 iAS + 9.0.2 OC4J standalone (from zip).
    Host B (destination) : 9.0.3.0.0 (build 020927.1699) iAS with OC4J managed by iAS, OHS and WebCache (not Portal,etc.).
    We want to deploy the ear files from Host A (development iAS) to Host B (production iAS).It seems we have this choices:
    1.with Web-EM (http://hostname:1810) from a client-browser, but it searches the ear locally.
    2.with admin.jar : we obtain this error because in the Host B there is no RMI port listening:
    $ java -jar /ORACLE/OAS1/j2ee/home/admin.jar ormi://asub.ub.edu/ admin manager
    -deploy -file app.ear -deploymentName app
    Error: javax.naming.NamingException: ...
    Connection refused
    3. within the directories in Host B and manually editing XML's: this is the way in Development (Host A) but it's not what we want in Production (implies OS users to Host B).
    4.With command-line DCMCTL , it works but only locally from Host B, not from Host A.
    5.With JDeveloper, from the developer PC. This is a problem when the ear is large and the PC is not in our network.
    I think the best option is (2), with admin.jar , but it fails if the destination Host is not a standalone OC4J (in this case exists a RMI port listening) and we want the pack iAS+OC4J(because also includes OHS,Webcache...)
    Would you please indicate how do we deploy to Host B from ear files located at Host A with admin.jar ??
    And if it's not possible, could you please indicate references/possible solutions??
    Thanks in advance,
    Robert.

    Hmmm.
    We don't use JDeveloper. We will have many external contractors delivering j2ee applications which they developed at their own environment (tomcat,jboss etc) to our win2k delivery terminal server running IAS903 core. They are required to use ANT to build their ear files, deploy their applications, test, make changes and redeploy.... We can't have someone just to sit there to redeploy the app for them! We do migrate their finished apps to our test and production environment.
    Currently our delivery environment is oc4j10221 standalone which can hot redeploy an app when a new ear file is detacted and server.xml/global-web-app.xml timestamp are "touched" so the contractors can easily manage their iterations of application delivery.
    What is the best way to let the contractors to run their own show in IAS903 core without me getting phone calls to redeploy their apps every 10 minutes?
    We need to run IAS903 core in delivery because we keep the exactly same s/w & h/w across environments so we don't have surprises later on.
    delivery->test->production (all win2k & ias903 core)
    Thx.
    Ken

  • Whats the best way to get the server name in a servlet deployed to a cluster?

              Hi,
              I have a servlet in a web application that is deployed to a cluster, just
              wondering what is the best way to get the name of the node that the server is
              running on at run time??
              Thanks
              

              Please try to modify the following code and test for your purpose: (check Weblogic
              class document for detail)
              import javax.naming.*;
              import weblogic.jndi.*;
              import weblogic.management.*;
              import weblogic.management.configuration.*;
              import weblogic.management.runtime.*;
              MBeanHome home = null;
                   try{
                        //The Environment class represents the properties used to create
                             //an initial Context. DEfault constructor constructs an Environment
                             //with default properties, that is, with a WebLogic initial context.
                             //If unset, the properties for principal and credentials default to
                             //guest/guest, and the provider URL defaults to "t3://localhost:7001".
                             Environment env = new Environment();
                             //Sets the Context.PROVIDER_URL property value to the value of
                             //the argument url.
                             if(admin_url!=null){
                                  env.setProviderUrl(admin_url);
                                  //Sets the Context.SECURITY_PRINCIPAL property to the value of
                                  //the argument principal.
                                  env.setSecurityPrincipal(username);
                                  //Sets the value of the Context.SECURITY_CREDENTIAL property to
                                  //the value of the argument cedentials
                                  env.setSecurityCredentials(password);
                                  //Returns an initial context based on the properties in an Environment.
                                  ctx = env.getInitialContext();
                             }else ctx = new InitialContext();
                             home = (MBeanHome) ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
                             ctx.close(); //free resource
                             // or if looking up a specific MBeanHome
                             //home = (MBeanHome) ctx.lookup(MBeanHome.JNDI_NAME + "." + serverName);
                             DomainMBean dmb = home.getActiveDomain(); //Get Active Domain
                             ServerMBean[] sbeans = dmb.getServers(); //Get all servers
                             if(sbeans!=null){
                                  for(int s1=0; s1<sbeans.length; s1++){
                                       String privip = sbeans[s1].getListenAddress();
                                  sbeans[s1].getName();
                             sbeans[s1].getListenPort();
                                                 WebServerMBean wmb = sbeans[s1].getWebServer();
                   }catch(Exception ex){
              "Gao Jun" <[email protected]> wrote:
              >Is there any sample code? Thanks
              >
              >Best Regards,
              >Jun Gao
              >
              >"Xiang Rao" <[email protected]> wrote in message
              >news:[email protected]...
              >>
              >> Sure. You can use the Weblogic management APIs to query ServerBean.
              >>
              >>
              >> "Me" <[email protected]> wrote:
              >> >
              >> >Thanks for your reply, i was hoping to find a better way for example
              >> >a class in
              >> >weblogic API.
              >> >
              >> >Thanks
              >> >
              >> >"Xiang Rao" <[email protected]> wrote:
              >> >>
              >> >>Physical: InetAddress.getLocalHost().getHostName()
              >> >>Weblogic: System.getProperty("weblogic.Name");
              >> >>
              >> >>
              >> >>"Me" <[email protected]> wrote:
              >> >>>
              >> >>>Hi,
              >> >>> I have a servlet in a web application that is deployed to a
              >cluster,
              >> >>>just
              >> >>>wondering what is the best way to get the name of the node that
              >the
              >> >>server
              >> >>>is
              >> >>>running on at run time??
              >> >>>
              >> >>>Thanks
              >> >>
              >> >
              >>
              >
              >
              

  • Servlet deployment in Weblogic

    Hi,
    Its a very simple thing but somehow its not working.Saw many sites ,but the solution is the same.But its still not working..can anyone help.
    Well..I have written a simple servlet that prints Hello.I am trying to deploy it in Weblogic 6.1.But when i invoke it thru the brwser the web server simply cannot find the servlet..i mean therez no error etc..its just 'Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request....'
    I have modified the web.xml file and added this..
    <servlet>
         <servlet-name>DataFetchServlet</servlet-name>
         <servlet-class>DataFetchServlet.class</servlet-class>
         <servlet-mapping>
         <servlet-name>DataFetchServlet</servlet-name>
         <url-pattern>quickStartServlet</url-pattern>
         </servlet-mapping>
    </servlet>
    i am calling the servlet like this
    http://localhost:7001/quikStartServlet
    but in vain..am i missing somehting?
    I have put the class into classes directory of the WEB-INF directory as specified by BEA Weblogic docs.
    thanx in advance

    What context is the servlet in? Did you put in
    the "default web application" (either the one
    furnished by the WLS install or one that you so
    designated in the configuration)? If not, then that
    part of your URL is missing. E. g.
    http://localhost:7001/webappname/nameFromWebXml
    That right.
    But the user is also missing a '/' before the url pattern.
    <servlet-mapping>
    <servlet-name>DataFetchServlet</servlet-name>
    <url-pattern>/quickStartServlet</url-pattern>
    </servlet-mapping>
    Try that.

  • Error: java.lang.NullPointerException in servlet deployment

    Hi!!!
    Im trying to deploy a servlet created in Jdeveloper on OC4J, but got the Error: java.lang.NullPointerException when the Jdeveloper is deploying the servlet.
    The containers are running, so I don't know what is the problem....
    Thanks

    If you could give a little more info it would help. The web.xml for example, if your mapping it correctly, etc...

  • Forte deployment destroys ias.  Help!

    I am running ias 6.0 sp1 on aix unix. I am using my pc with forte installed to deploy. I find if my app does not have web module then it's OK but if it does, then the deployment will fail saying something like "where is the GDS context param?" and some error message. Sorry I can't be specific as everytime this error appears, it destroy my installation of ias and since I didn't jot down the error message, I can't affrod to delpoy again as it obviously will do it again. After the error, if I start ksvradmin, I won't see any server registered and if I new a server, it will say my entries are incorrect, namely the password, but actually theu are correct. Can anyone provide a link or tutorial guide of how to create a web module and ejb module and then deploy the app using Forte. Your help is very much appreciated.

    Hi,
    I understand your problem. But, please install iAS and give a try once again, because, the log files are important and going through the log files will help us know on what exactly happened and why this is occuring.
    Meanwhile, I will search for all the documents that I can on deploying EJB/WEB module with FFJ(Forte For Java) to send you. Hope this helps you.
    Regards
    Ganesh .R
    Ganesh .R
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support

  • Servlet deployment problem

    hi all,
    i first post in java fundamental then i realize it should be in servlet sorry if u ppl suppose it repeated.
    i have a problem about which i search lot but didnt find any answer.
    i made an servlet and deploy it in tomcat.
    My directory structure is according to standard under midp folder. In my web.xml under WEB-INF/classes
    i wrote
    <web-app>
    <servlet>
    <servlet-name>bob</servlet-name>
    <servlet-class>HitServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>bob</servlet-name>
    <url-pattern>/hits</url-pattern>
    </servlet-mapping>
    </web-app>
    and acces it with http://localhost:8080/midp/hits
    it says hits not avaiable
    but when i change this section
    <servlet-mapping>
    <servlet-name>bob</servlet-name>
    <url-pattern>/servlet/HitServlet</url-pattern>
    </servlet-mapping>
    and access http://localhost:8080/midp/servlet/HitServlet
    it works.
    i cant understand y this happen bcz i wanna access it like
    http://localhost:8080/midp/hits
    what should i have to do?
    plz help me.

    Uh, you said that your web.xml is under /WEB-INF/classes? That's not the right place, it goes under /WEB-INF/.
    But...to answer your question, I see nothing wrong with your servlet and servlet mapping entries. A test on one of my apps worked perfectly.
    What App Server are you running? Did you stop it, redeploy, then restart it and then access the page?
    There's something else going on, because there's nothing wrong with your mapping.

  • How to get the Application name/fullpath in a servlet deployed in WebLogic

    Hi ,
    Just like we can get the domain root directory from weblogic.management.DomainDir
    String root = DomainDir.getRootDir() ;and domain name from weblogic.management.configuration.DomainMBean
    DomainMBean domainMBean = MBeanUtils.getDomainMBean();
    String domainName = domainMBean.getName() ;How can i get , the application name in which the servlet is deployed from inside the same servlet ? Which API from weblogic provides that information ?
    for eg : application path = Middleware/user_projects/domains/Domain_1/servers/AdminServer/upload/webapp1.war
    and application name = webapp1.war
    Edited by: Tom on Mar 31, 2011 9:32 PM

    Not sure about Weblogic Specific API however you can use Java API.
    public void init(ServletConfig config) throws ServletException {
              // TODO Auto-generated method stub
              System.out.println(config.getServletContext().getRealPath(""));
              System.out.println(config.getServletContext().getContextPath());
    output:
    C:\Documents and Settings\user\KEDB\KEDBRISKIT\WebContent --- Application Path
    /KEDBRISKIT --- Application Name
    -Akshay

  • Servlet deployment in oc4j

    How do you define system property with OC4J. OAS versions allow you to do that. I have servlet 2.1 compatible application that I want to deploy into oc4j without code changes. Any ideas?

    Or if you don't want to use property files you can use the ServletContext class which has two methods:
    public String ServletContext.getInitParameter(String name)
    public Enumaration ServletContext.getInitParameterNames()
    The init parameters for a context are specified in the web.xml deployment descriptor for the context using the <context-param> tag. Example:
    <web-app>
    <context-param>
    <param-name>rmihost</param-name>
    <param-value>localhost</param-value>
    </context-param>
    <context-param>
    <param-name>rmiport</param-name>
    <param-value>1099</param-value>
    </context-param>
    </web-app>
    To find the context init parameters in a servlet you can do:
    try {
    ServletContext context = getServletContext();
    String rmihost = context.getInitParameters("rmihost");
    int rmiport = Integer.parseInt(context.getInitParameter("rmiport"));
    } catch (Exception e) {
    }

  • Loading (and hiding) an applet from forms 6i (deployed on iAS 1.0.2)

    Hi:
    We have an existing in-house Forms 6i application deployed on Oracle iAS 1.0.2 (client PC is running Win XP).
    I need to do the following after user completes a specific action on the form (e.g. click a button):
    - loading an applet to downloading a file from the server to client machine
    - the applet (and the associated HTML page, if any) must be hidden from the user
    - after the downloading process is completed, the applet (and associated HTML page) is terminated without any impact on the Oracle Form
    Any help (and examples if available) is much appreciated
    Thks

    Hello,
    Applets accept parameters, so you could use these parameters to move or resize the main frame (like the Forms applet does).
    If your are the owner of the Applet, you also could envisage to transcript it into a Java Bean, then it would be totally transparent for the user.
    Francois

  • Weblogic server 7.0 sp2 - servlet deployment

    Hi,
    Is there any way that i can delpoy a servlet with out context root name ?
    I am using weblogic 7.0 sp2.
    for eg. if i deply a war say "example.war"
    then it works only if i refer http://hostname:7001/example/servletClass. I need
    to refer like
    http://hostname:7001/servletClass.
    Is there any to deploy as a root servlet with out contxt root name ?
    Thanks

    "Bala" <[email protected]> wrote:
    >
    Hi Govind,
    To add what Selva said, you can also configure <context-root>/</context-root>
    parameter in weblogic.xml DD file. But you can have only one application
    as the
    default application for every WLS instance.
    Bala
    "Selvamohan Neethiraj" <[email protected]> wrote:
    Make the example application as the default Web application in the server.
    Thanks,
    Selva-
    "Govind" <[email protected]> wrote in message
    news:3f96e951$[email protected]..
    Hi,
    Is there any way that i can delpoy a servlet with out context rootname ?
    I am using weblogic 7.0 sp2.
    for eg. if i deply a war say "example.war"
    then it works only if i refer http://hostname:7001/example/servletClass.
    I need
    to refer like
    http://hostname:7001/servletClass.
    Is there any to deploy as a root servlet with out contxt root name?
    Thanks

Maybe you are looking for

  • How To Give a Validation In Prompt(OBIEE Answers)

    Hi, I ahve the promt like Name----------------<text box> Go if i enter the name then the prompt will effect on the data. if i didn't enter tha data in name textbox it should dispaly a meassge like:please enter a valid name: here name comling from bac

  • Dynamic execution of sequenc

    Hi, I have the below function which takes the sequence name as variable and returns me the next val. Function fngetnextseq(object_id varchar2) return number IS l_next_no number(38); l_sql varchar2(100); BEGIN      l_sql := 'select '||object_id ||'.ne

  • Cannot dial a number by clicking on it within the ...

    If you're looking up a business or phone number in the web browser, find the number, move the cursor over the number and click the phone should dial the phone number. Instead when i click on any phone number i get this error message: "Internet teleph

  • Can't turn off iTunes Store or Match

    I have recently upgraded to iTunes 10.5.2.  Now, every thime I open iTunes, it tries to conect to "ax.init.itunes.apple.com".  I don't want to use the iTunes Store. I want to stop all connections to the store.  But, I can't find a way of stopping iTu

  • Extended check warning

    hi, In extended Check of my code i get this Warning: Program:  ZFI_E_DV_FINA_SWIFT  Include:  ZFI_E_DV_FINA_SWIFT_F01  Line :     35  FORM TRANSFER_DOWN not called directly                                           (check dynamic PERFORMs! Maja