How to access  j2ee servlet directly?

Hi All,
I have a question about Doc 333862.1
My customer wants to follow test case in the CAUSE section.
He wants to call SimpleServlet with bellow URL.
http://hostname:port/j2ee/servlet/SimpleServlet
When I execute it in our test instance, I can't access j2ee servlet directly and faced bellow HTTP 403 Forbidden warning.
"You don't have permission to access /j2ee on this server."
How to access the SimpleServlet?
If you have any solution or advice, please give me the feedback freely.
Regards,

<i>how to create a new project of type J2EE -> EJB Module Project.</i>
First of all u need to have NWDS.
There go to File -> New -> Project -> Select J2EE -> Select EJB Module Project
<i>any prerequisites required to create this apart from the java gui</i>
None. U may create the project here in NWDS and can deploy on XI server.
<i>all in all i want to find how to access J2EE explorer.</i>
J2EE Explorer can be seen under Windows -> Show View -> J2EE Explorer
Regards,
Prateek

Similar Messages

  • How to access J2EE explorer

    hi there,
    how to create a new project of type J2EE -> EJB Module Project. any prerequisites required to create this apart from the java gui. all in all i want to find how to access J2EE explorer.
    kalyan.

    <i>how to create a new project of type J2EE -> EJB Module Project.</i>
    First of all u need to have NWDS.
    There go to File -> New -> Project -> Select J2EE -> Select EJB Module Project
    <i>any prerequisites required to create this apart from the java gui</i>
    None. U may create the project here in NWDS and can deploy on XI server.
    <i>all in all i want to find how to access J2EE explorer.</i>
    J2EE Explorer can be seen under Windows -> Show View -> J2EE Explorer
    Regards,
    Prateek

  • How to access a servlet using a blackberry?

    hello guys
    I have an application that runs on a blackberry and is supposed to access a Servlet on a Tomcat web server. My question is: Should I configure first Tomcat to be able to handle WAP request? If "Yes", how can I do that?
    Or maybe I don't have to do nothing at all

    http://www.blackberry.com/developers/journal/nov_2003/calling_all_networks.shtml#wanauh
    HTH
    Phani Koka

  • How to Access/Launch Payer Direct

    Can anyone tell me how to launch the Payer Direct content of Biller Direct?
    (I am not talking about using the Business Package - It is no longer available.)
    What is the URL?
    For Biller Direct it is "http://server:port/bd".
    I have not seen anything speaking to how to access Payer Direct.
    I have seen screenshots that show the url as "http://server:port/bdpd/public/frameset_top_html.jsp...".
    But I have now done two installs, and I do not see a "bdpd" directory - just the "bd" directory.
    Thank you

    Hi Jim
    Thanks for this, kinda. Appreciate your offering a workaround but when you have an edit that you want to colour correct mid process (just to match cameras up before applying adjustment layer for entire grade) rather than being at the end of the process then this is just won't work.
    I think the Direct Link feature is awesome and works so well for moving back and forth between the two applications. Way better than say exporting EDLs or XMLs and going to DaVinci Resolve. Love that you can continue editing or tweaking the project after coming back which is harder to do coming back from the other applications. That said, and as you say, it seems like it needs another round of updates to make it a truly useable application using this approach.
    I will use the link below and give my feedback and requests for future versions.
    Thank you.

  • How to access performance counter directly?

    What I am going to do is programming with hardware performace counters of UltraSPARC T2+ processors in Solaris 10. I programmed a loadable syscall to invoke the hv_niagara_getperf or ultra_getpic, trying to get the counters' data. But there just comes a panic, unresponsive without any text notice, and then reset. I don't know what's the real causes because I am not very familiar with SUN servers.
    I did some experiments both in primary domain and logical domain. In primary domain, both hv_niagara_getperf and ultra_getpic lead to panic, and in logical domain, hv_niagara_getperf return the ENOACCESS status and ultra_getpic lead to panic.
    My question are:
    1, If there is some initialization works or privilege settings to do to prevent panic?
    2, If Logical Domain can be set privileges to access hardware performace counters? (I read the Hypervisor api manuals and it says only one domain can access performance counters. But vcpus is divided and allocated to different domains, every vcpu has its performace counters, how can I do to access their own performace counters in different domains?)
    3, I know there are methods such as libcpc, cpc module, and pcbe module for users or develpers to get performace data. What I am working at is to make some threads performance tuning on UltraSPARC T2+, Is the overhead acceptable to use these library or modules supported by the OS architecture.
    Please help me, indicate my fault and give me some advice or instruction. Thank you very much.

    What I am going to do is programming with hardware performace counters of UltraSPARC T2+ processors in Solaris 10. I programmed a loadable syscall to invoke the hv_niagara_getperf or ultra_getpic, trying to get the counters' data. But there just comes a panic, unresponsive without any text notice, and then reset. I don't know what's the real causes because I am not very familiar with SUN servers.
    I did some experiments both in primary domain and logical domain. In primary domain, both hv_niagara_getperf and ultra_getpic lead to panic, and in logical domain, hv_niagara_getperf return the ENOACCESS status and ultra_getpic lead to panic.
    My question are:
    1, If there is some initialization works or privilege settings to do to prevent panic?
    2, If Logical Domain can be set privileges to access hardware performace counters? (I read the Hypervisor api manuals and it says only one domain can access performance counters. But vcpus is divided and allocated to different domains, every vcpu has its performace counters, how can I do to access their own performace counters in different domains?)
    3, I know there are methods such as libcpc, cpc module, and pcbe module for users or develpers to get performace data. What I am working at is to make some threads performance tuning on UltraSPARC T2+, Is the overhead acceptable to use these library or modules supported by the OS architecture.
    Please help me, indicate my fault and give me some advice or instruction. Thank you very much.

  • How to access Current Servlet Context from a java webservice class?

    Hi,
    I' am developing a Java Web Service Class, and I want to access some application settings information stored in the application context,
    but I couldn't get access to the current ServletContext?
    Note:
    I added my settings to the web.xml file in the WEB-INF folder.
    Normally I' am using getInitParameter(key) to get the value.
    Can any one help me please?
    Message was edited by:
    MySecreen

    Hi,
    I' am developing a Java Web Service Class, and I want
    to access some application settings information
    stored in the application context,
    but I couldn't get access to the current
    ServletContext?
    Note:
    I added my settings to the web.xml file in the
    WEB-INF folder.
    Normally I' am using getInitParameter(key) to get the
    value.
    Can any one help me please?
    Message was edited by:
    MySecreenI was faced with a similar issue, here's what worked for me:
    Have your class implement the ServiceLifecycle Interface and use it as you normally would, here's a sample
    import javax.xml.rpc.ServiceException;
    import javax.xml.rpc.server.ServiceLifecycle;
    import javax.xml.rpc.server.ServletEndpointContext;
    import javax.servlet.ServletContext;
    public class SomeClass implements ServiceLifecycle {
         private ServletContext sc = null;
    ....// rest of class code......
    public void init(Object arg0) throws ServiceException {
              ServletEndpointContext ctx;
              ctx = (ServletEndpointContext) arg0;
              sc = (ServletContext) ctx.getServletContext();
    ...}

  • How to access a servlet using pageflows

    My query is
    My jsp page on clicking submit button should call servletA with certain hidden
    fields(includes a re-directURL) and file attachments as attributes. This servlet
    is on a remote machine. The servlet returns me an id to the redirect_url that
    i have provided. How do I implement this in Portal8.1 using pageflows
    Thank You
    Udai

    >
    My query is
    My jsp page on clicking submit button should call
    servletA with certain hidden
    fields(includes a re-directURL) and file attachments
    as attributes. This servlet
    is on a remote machine. The servlet returns me an id
    to the redirect_url that
    i have provided. How do I implement this in Portal8.1
    using pageflows
    Thank You
    Udai

  • Accessing a servlet from another class

    Not to confuse anyone too much, but here's the scenario.
    I have a servlet that calles other Java classes which perform various functions. Now can I have one of these classes access the servlet directly, without setting up a socket based connection. What I mean is can I just simply call its methods and have access to the HttpServletResponse/HttpServletRequest objects?
    Usually the servlet gets accessed via an HTTP client where then servlet will call classes it needs to access, where here I have a class accessing the servlet directly.
    I do not have the capability of running servlets at the moment so I cannot just do a quick and dirty test to see how it would be done.
    Any input would be appreciated.

    If you have a servlet that contains methods that
    aren't related to the processing of a request (except
    for initialization) then those methods are in the
    wrong place. I don't know where they should be
    instead, that depends on your design. Perhaps you
    should post some details about what you are trying to
    do here.Currently I have not written code for what I am attempting.
    What I am attempting is quite an unorthodox approach of getting server information via a servlet. However unlike your standard servlet the servlet will be accessed via a java class, rather than being invoked from a URL.
    If I had to use psuedo-code I would put it like this:
    class A{
    public void accessHeaders(){
    // access servlet HttpRequest object.
    // use the object.
    // display header info...etc.
    // main prog.
    class Test {
    public static void main(String[] a){
    A a = new A();
    a.accessHeaders();
    The servlet will be a generic servlet which overrides a doGet().
    That's right an app accessing a servlet. I have done this but using the java.net package but I don't want to use that in this case. Can I implicitely call the servlet?
    Now the more I think about doing something like this the more I feel that it cannot be done this way.
    I am new to servlets so I don't know all the ways they can be used.

  • How to access deployed J2EE Web application ?

    Hi,
    I am new to J2EE Web Application. I have created a Web Module project and in that I have created a servlet. I did a build for WAR file. I have created an Enterprise Application Project and included this WAR file. I built  the EAP and deployed it to J2EE engine. I am successful till here.
    I am not sure how to access this deployed application and thus this servlet.
    I tried to access the following way :
    http://<hostname>:<portnumber>/<EAPName>/<ServletName>
    However, I receive the error no such location.
    In the web.xml file, in the servlet-mapping section, I have mentioned the servletname and urlpattern.
    I have mentioned the urlpattern as MyServlet and not /MyServlet. Notice the 'backslash'.
    Could this be an issue ?
    Regards,
    Subramanian V.

    Hi
    See this Thread
    Re: servlet ----->url association ?
    Re: Servlet not getting loaded when put in a jar file
    Re: I just want to run a simple servlet. No EJBs, no Web DynPro...
    /message/610344#610344 [original link is broken]
    Kind Regards
    Mukesh

  • How to access XM attribute name in servlet ?

    Hi All,
    Anybody please tell me how to access attribute name in servlet ?
    Thanks

    Hi All,
    I have modified the source code of af:showDetailItem as following:
    <af:forEach items="#{bindings.VerticalAppMenus.children}" var="globalMenu" varStatus="globalMenuVarStatus">
               <af:showDetailItem text="#{globalMenu.MenuLabel}" id="sdi1" disclosureListener="#{pageFlowScope.globalMenus.refreshLineMenus}"
                 disclosed="#{(pageFlowScope.globalMenus.currentVerticalMenuId == globalMenu.MenuId) ? true : false}">
                  <f:attribute name="currentVerticalMenuId" value="#{globalMenu.MenuId}"/>
    </af:showDetailItem>
    </af:forEach>For the code *disclosed="#{(pageFlowScope.globalMenus.currentVerticalMenuId == globalMenu.MenuId) ? true : false}"*, at runtime it is giving the following error:
    *java.lang.IllegalArgumentException: Cannot convert 32 of type class oracle.jbo.domain.Number to class java.lang.Long*.
    Is there any way to cast the long to number or number to long in EL?
    Any help will be highly appreciated
    Thanks ... Best Regards
    Bilal
    Edited by: Bilal on 04-Apr-2012 19:32

  • How to access the JMS queues in the XI J2EE Engine?

    Hi Gurus,
    Can anybody know how to access the jms dead message queues in the WAS J2EE Engine?
    I have read in the SAP documentation that we can use some JMS commands from the telnet. I don't know how to use those commands.
    Can anybody provide a step-by-step process to access these queues?
    Thanks
    Kalyan

    1) Open a command prompt
    2) type
    telnet localhost 50008
    where the port is the same as your http, but with 8 as last digit.
    3) Login
    4) Issue the following set of commands
            jump 0
            add jms
            jms list deadmsgs
    Check by man jms other possible options.
    HTH
    Peter

  • How to access JMS queues in the SAP J2EE Engine?

    Hi Gurus,
    Can anybody know how to access the jms dead message queues in the XI J2EE Engine (which is WAS 6.40)?
    I have read in the SAP documentation that we can use some JMS commands from the telnet. I don't know how to use those commands.
    Can anybody provide a step-by-step process to access these queues?
    Thanks
    Kalyan

    1) Open a command prompt
    2) type
    telnet localhost 50008
    where the port is the same as your http, but with 8 as last digit.
    3) Login
    4) Issue the following set of commands
    jump 0
    add jms
    jms list deadmsgs
    Check by man jms other possible options.
    HTH
    Peter

  • How to access a view object under a nested appmodule in servlet

    Hi,
    Can anyone tell me how to access a view object under a nested appmodule in a servlet?
    I know that I can use
    ApplicationModule app = Configuration.createRootApplicationModule(amDef, config);
    ViewObject vo = app.findViewObject(viewObjectName);
    to get hold of an appmodule and view object.
    But in a nested appmodule, for example, I have am0 as root, am1 as child, and voZ within am1, what should I use for this amDef? config? and viewObjectName?
    Your help would be much appreciated.

    Hi,
    http://radio.weblogs.com/0118231/stories/2005/07/19/nestedApplicationModules.html
    Frank

  • How to access attribute name (xml) in Servlet ?

    Hi All,
    Anybody please tell me how to access attribute name in servlet ?
    Thanks

    Parser.java
    public class Parser
    public static String getAtt()
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              factory.setNamespaceAware(true);
              DocumentBuilder parser = factory.newDocumentBuilder();
              Document doc = parser.parse("customer.xml");
              Element root = doc.getDocumentElement();
    return root.getAttribute("name");
    public static void main(String [] argc)
    Parser p = new Parser();
    p.getAtt();
    Servlet.java
    Parser p1 = new Parser();
    String att1 = p1.getAtt();
    Hope this will help u.
    ....yogesh

  • How to access sort direction and filter value of columns?  Can I catch the 'filtered' or 'sorted' event?

    We have some columns being added to a table.  We have set the sortProperty and the filterProperty on each of our columns.
    This allows us to both filter and sort.
    We want to be able to access the columns filter value and sort value after the fact.  Can we access the table and then the columns and then a columns properties to find these two items?  How can I access the sort direction and filter value of columns?
    We would also like to store the filter value and the sort direction, and re-apply them to the grid if they have been set in the past.  How can we dynamically set the filter value and sort direction of a column?
    Can I catch or view the 'filtered' or 'sorted' event?  We would like to look at the event that occurs when someone sorts or filters a column.  Where can I see this event or where can i tie into it, without overwriting the base function?

    Hey everyone,
    Just wanted to share how I implemented this:
    Attach a sort event handler to table - statusReportTable.attachSort(SortEventHandler);
    In this event handler, grab the sort order and sorted column name then set cookies with this info
    function SortEventHandler(eventData)
        var sortOrder = eventData.mParameters.sortOrder;
        var columnName = eventData.mParameters.column.mProperties.sortProperty;
        SetCookie(sortDirectionCookieName, sortOrder, tenYears);
        SetCookie(sortedColumnCookieName, columnName, tenYears);
    Added sortProperty and filterProperty to each column definition:
    sortProperty: "ColName", filterProperty: "ColName",
    When i fill the grid with data, i check my cookies to see if a value exists, and if so we apply this sort:
    function FindAndSortColumnByName(columnName, sortDirection (true or false))
        var columns = sap.ui.getCore().byId('statusReportTable').getColumns();
        var columnCount = columns.length;
        for(var i = 0; i < columnCount; i ++)
            if(columns[i].mProperties.sortProperty == columnName)
                columns[i].sort(sortDirection);

Maybe you are looking for

  • Excise Details are not maintanied for Vendor 0000000957.

    Hi,   As per our regular process  we are capturing inovie with J1IEX  and doing GR in MB01   now i have captured  invoice in J1IEX  and while making GR with MIGO i am getting error Excise Details are not maintanied for Vendor 0000000957. ,  but when

  • Macbook Air works well everywhere except home, where other devices work fine.

    Hello. I've searched a bit on these boards, but nobody seems to be having the same problem. My Macbook Air has worked fine since I got it in Sept, and the wireless picked up a fast connection at home, school, cafes, etc. Just recently it started bein

  • Poor query performance

    I have an Oracle 10g R2 10.2.0.4 data warehouse with a fact table that holds records that are input in chronological order. Each month of records is contained in its own tablespace. Each tablespace is partitioned by a range partition on the day and s

  • Adobe Content Viewer/no interactivity or animation

    We're running InDesign CS5.5 I work at an advertising agency and just had my IT department update my extensions to: Folio Producer Tools v.1.10.1 Folio Panel v.12.2.2.1 I also updated my Adobe Content Viewer App on my iPad 2. My problem: The pages sh

  • Problems ripping from c

    when i rip from cd's to my zen sleek why do some tracks jump is it because it goes through windows media player because when i play them back throuhg wmp the same thing happens