Proxing servlet's via Nsapi ?

Is there any way other than 'ppath' to proxy requests to a servlet in
WLv5.1-sp3, via the Nsapi in either Nes 3.6 or 4.0? The environment is all
Solaris.
It doesn't seem that mime types would work, being as there isn't a file
suffix (i.e. JSP, jhtml, etc.) to proxy.
Thanks in advance.
Pat Power
Context Integration NY

All you need to do is add the mapping from text/jsp to the jsp extension to the
mime.types file (same directory as obj.conf).
Patrick Power wrote:
Is there any way other than 'ppath' to proxy requests to a servlet in
WLv5.1-sp3, via the Nsapi in either Nes 3.6 or 4.0? The environment is all
Solaris.
It doesn't seem that mime types would work, being as there isn't a file
suffix (i.e. JSP, jhtml, etc.) to proxy.
Thanks in advance.
Pat Power
Context Integration NY

Similar Messages

  • Proxing servlet's via Nsapi (NES bridge)

    Is there any way other than 'ppath' to proxy requests to a servlet in
    WLv5.1-sp3, via the Nsapi in either Nes 3.6 or 4.0? The environment is all
    Solaris.
    It doesn't seem that mime types would work, being as there isn't a file
    suffix (i.e. JSP, jhtml, etc.) to proxy.
    Thanks in advance.
    Pat Power
    Context Integration NY

    Sorry, the answer then is that while there are other ways to proxy (say
    name-trans) we only support ppath and extension.
    cheers
    mbg
    In article <[email protected]>, [email protected] says...
    Mark, thanx for your response. We've been thru those docs and they didn't
    seem to answer our question.
    If you have a mime type with an extension like Jsap or Jhml, no problem.
    This is html talking to a servlet class file back on the server. You
    can't proxy a class file by extension, that I'm aware of.
    Mark Griffith <[email protected]> wrote in message
    news:[email protected]..
    It is in the docs.
    http://www.weblogic.com/docs51/admindocs/nsapi.html
    Proxy by file extension
    mbg
    In article <396366e9$[email protected]>, [email protected] says...
    Is there any way other than 'ppath' to proxy requests to a servlet in
    WLv5.1-sp3, via the Nsapi in either Nes 3.6 or 4.0? The environment is
    all
    Solaris.
    It doesn't seem that mime types would work, being as there isn't a file
    suffix (i.e. JSP, jhtml, etc.) to proxy.
    Thanks in advance.
    Pat Power
    Context Integration NY
    ==================================================
    NewsGroup Rant
    ==================================================
    Rant 2.
    Many of the answers to your questions are in the
    documentation. At the top of our online docs is
    a search button. Try it!
    ==================================================
    NewsGroup Rant
    ==================================================
    Rant 1.
    The less info you provide about your problem means
    the less we can help you. Try to look at the
    problem from an external perspective and provide
    all the data necessary to put your problem in
    perspective.

  • How to access servlet only via specific port?

    Hi all,
    I have an app with 2 servlets, I want each servlet to be accessible via a different port.
    so I open HTTP on my web server, on port 80 and 18080, but now BOTH servlets are available via BOTH ports.
    how can I make sure that servlet 1 is accessible only via port 80, and servlet2 is only accessible via port 18080?
    tnx

    Run two servers.

  • Output page is not completed via NSAPI cluter

    I have two Netscape web servers installed NSAPI and configured as
              cluster mode.
              Besides WebLogicCluster parameter,
              I have following
              ConnectTimeoutSecs=20
              ErrorPage=error.html
              And, I experience the output HTML is not completed sometime.
              Does anyone experience this kind of problem?
              How to fix it?
              Thanks,
              Alex
              

    I have encountered a similar bug with the NSAPI proxy product. It is a
              documented bug that has yet to be fixed. Our applications uses RMI and if an
              RMI call takes too long to complete the HTML page returns incomplete. This may
              be what you are seeing. You will only see this if your web browser is using
              HTTP 1.1. The problem is the WLS is using HTTP 1.0 and by default the
              NES/NSAPI proxy uses HTTP 1.1. If the client web browser is using HTTP 1.0
              then the NES/NSAPI will fall back to the HTTP 1.0 protocol and everything is
              happy. Good luck if this your problem. The only solution so far is to use WLS
              as the HTTP server ( i.e. buy more licenses ).
              Alex Peng wrote:
              > Prasad,
              >
              > I have all of pages created by WebLogic.
              >
              > Alex
              >
              > Prasad Peddada wrote:
              >
              > > Alex,
              > >
              > > Who is serving the html pages. NES or WL? As far configuring with
              > > proxy I would let NES handle the html requests and let Wl servers handle
              > > the jsp, servlets and jhtml.
              > >
              > > Prasad
              > >
              > > Alex Peng wrote:
              > >
              > > > I have two Netscape web servers installed NSAPI and configured as
              > > > cluster mode.
              > > > Besides WebLogicCluster parameter,
              > > > I have following
              > > > ConnectTimeoutSecs=20
              > > > ErrorPage=error.html
              > > >
              > > > And, I experience the output HTML is not completed sometime.
              > > >
              > > > Does anyone experience this kind of problem?
              > > > How to fix it?
              > > >
              > > > Thanks,
              > > >
              > > > Alex
              

  • Applet Servlet communication via serialization

    I serialized an object containing a JTable to and from a file
    without any problem.
    Now I ran the same serialization over the net from servlet to
    applet and get now a security exception. The table data are
    simple Strings.
    If i remove the JTable from the serialized object the communicaton
    works fine.
    I use the DefaultTableModel.

    Sorry for the delay.
    Here is the stack trace of my error message ( a bit truncated ) :
    perhaps the line marked bold is somewhat responsible.
    Is there a way to deactivate this EventListenerList ?
    What is it used for ?
    I get the error even if I only instantiate an empty table ( without any explicit model ).
    java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.swing.table)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPackageAccess(Unknown Source)
         at sun.plugin2.applet.Applet2SecurityManager.checkPackageAccess(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at java.io.ObjectInputStream.resolveClass(Unknown Source)
         at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
         at java.io.ObjectInputStream.readClassDesc(Unknown Source)
         at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Unknown Source)
         at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
         at java.io.ObjectInputStream.readSerialData(Unknown Source)
         at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Unknown Source)
         at java.io.ObjectInputStream.readObject(Unknown Source)
         at javax.swing.event.EventListenerList.readObject(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
         at java.io.ObjectInputStream.readSerialData(Unknown Source)
         at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Unknown Source)
         at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
         at java.io.ObjectInputStream.readSerialData(Unknown Source)
         at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Unknown Source)
         at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
         at java.io.ObjectInputStream.defaultReadObject(Unknown Source)
         at javax.swing.JTable.readObject(Unknown Source)

  • Delays in applet-servlet communication via serialization

    The application that I am developing requires the applet to communicate with a servlet. It works fine except that it seems to send the data in spurts. The servlet seems to wait for good time before it sends out the next batch. It also seems that the batch is defined by the amount of data collected before the final write. This is inspite of flushing data and reseting the stream after every write.
    Please advise what could be done to solve this problem. I have added the detailed description below.
    DESCRIPTION
    APPLET
    The applet opens a ObjectInput Stream (HTTP Tunneling) over the URLConnection and waits for Objects to come to it on a separate thread . I receive the objects and put them in a queue to ensure quick reading from the stream.
    Relevant Code:
    try{
    URL serveletURL = new URL( baseURL + cduURL);
    System.out.println(" URL is " + serveletURL);
    cduCtrlConn = (HttpURLConnection ) serveletURL.openConnection();
    cduCtrlConn.setUseCaches(false);
    cduCtrlConn.setDoInput(true);
    inStream = new ObjectInputStream(
    new BufferedInputStream(cduCtrlConn.getInputStream()));
    catch (Exception ex) {
    ex.printStackTrace();
    try {
    dataQ = new Vector(30);
    DataEventObj tmpDeObj = (DataEventObj) inStream.readObject();
    eObjListener = new EntityObjectListener(dataQ,inStream);
    EntityObjectListener is extends thread and waits on the stream. Once it gets the objects it addes it to the dataQ (vector). It relevant code is .............
    if (NmsClientGlobals.TRACE2)
    System.out.println( "EntityObjectListener.run(): Reading object");
    deObj = (DataEventObj) inStream.readObject();
    SERVLET
    The servlet opens a ObjectOutputStream over the HttpServletResponse. It first gets a bunch of objects from a database and writes to the stream. It also registers for change events coming from the database. When these events comes, it gets the new objects and writes them to Stream.
    Relevant Code:
    response.setStatus (HttpServletResponse.SC_OK);
    outStream = new ObjectOutputStream(
    new BufferedOutputStream(response.getOutputStream(),256));
    outStream.flush();
    // I used different buffer sizes (default-512, 1024, 256) to see if it make a difference .. it seems // not
    .......... // The following the done for all objects available in the database in a loop
    outStream.writeObject(tmpDataEnvObj);
    outStream.flush(); // Doing repeat flush to ensure that it goes through
    outStream.flush();
    outStream.flush();
    outStream.flush();
    outStream.flush();
    outStream.reset(); // reset is suggested to make stream work
    outStream.flush();
    utilLogger.debug("Written object: " + deObj.flag );
    The same code is used by thread that receives notification and then writes it to the stream. If this thread does not receive notifications for 10secs it writes dummy object to the stream. It was done as an attempted fix to the problem (if connection dies ). After adding it, I saw some interesting observations
    SOME OBSERVATIONS
    1. The server logs prints out that the object has been written but the client logs (java console) shows that it is waiting for input to come.
    2. If the amount of data is less then it takes longer for data to come to the client. It seems to me that the server waits for the stream to be filled with dummy data before it sends the final data packet. This seems to be only explaination for this observation is that there is a threshold for packet size. But, I know of no option to set this threshold. Anyway, this is analysus and may not be correct.
    3. I ran a snoop on the connection between the PC and Sun Machine. The queues for the TCP are empty. It seems that after server code prints to the logs that data is written, the TCP doesnot receive it. It seems something in the Java API or the tomcat webserver is holding the data.
    ENVIRONMENT
    server
    Platform: Solaris 2.8
    Java : jre 1.2.2_008
    Web server: Tomcat 3.2.1
    Client
    IE 5.5 with java plugin 1.2.2_008
    I appreciate your help in solving this problem
    -Seonie

    You are using a communication protocol (HTTP) that is designed for "client sends 1 request, server sends 1 response, end of story" pattern for something that is more than that. I understand that you are trying to send binary data over HTTP in order to tunnel over a firewall-friendly protocol, but HTTP was not designed for long-lasting connections. (because HTTP is "client pull", you will have to keep the connection open for a long time and keep the client blocked on read).
    This is not the ideal solution. You have been warned.
    However, if you insist on it and do not want to close the stream, try an HTTP-specific way of flushing data, like
    response.flushBuffer();The motivation behind this suggestion is that the OutputStream you are getting from the response object is probably already buffered, but it likely goes off of a buffer maintained by the HTTP implementation. Hence you can try flushing that directly.
    Vlad.

  • Servlet deploy via command line

    Is there a way to deploy Servlets like EJB. I mean, is there a command line
              you can use under Unix to hot-deploy a servlet without using the Console nor
              to restart the server?
              

    You have to set the servlet classpath in weblogic.properties file to a
              specific directory. Now If all your servlets are present in this specific
              directory then you dont have to restart the server.
              Parikshit
              "UAI" <[email protected]> wrote in message
              news:8e3foa$7ij$[email protected]..
              > Is there a way to deploy Servlets like EJB. I mean, is there a command
              line
              > you can use under Unix to hot-deploy a servlet without using the Console
              nor
              > to restart the server?
              >
              >
              >
              >
              

  • Reading client-posted data via Tomcat servlet

    Hi,
    I'm doing some simple client/servlet communication using Tomcat, using POST's via an HttpURLConnection.
    I'm seeing my data at the servlet side via getInputStream(), but I can't decode it to a String, even by using InputStreamReader (which is supposed to do that). If I send a 5 character String, at the servlet I see "^@^@^@^@^@". I've tried constructing a String from a byte[], but it doesn't decode, either.
    I've tried writing the data as text with PrintWriter on the client side, and then reading text on the servlet side with getReader(), but getReader() returns null.
    I'm beginning to wonder if the problem is within Tomcat itself.
    Reading the docs and api's leads me to believe this should be very straightforward, but it's just not working.
    Any thoughts would be greatly appreciated!!!

    Here's the code... but there's been a strange twist:
    (client side)
    private void writeStringAsText(OutputStream outputStream, String content) throws UnsupportedEncodingException
    PrintWriter printer = new PrintWriter(outputStream);
    String encoded = URLEncoder.encode(content,"UTF-8");
    System.err.println("asText is [" + content + "], encoded = [" + encoded + "]");
    printer.println(encoded);
    printer.flush();
    printer.close();
    Servlet side:
    BufferedReader reader = request.getReader();
    StringBuffer sBuf = new StringBuffer();
    while ((line = reader.readLine()) != null){
    sBuf.append(line);
    Yesterday the problem disappeared, but it reappeared today.
    So, yesterday, the above code worked fine. Today I learned that
    a call to reader.ready() (servlet side) returns false.
    Does anyone know why a BufferedReader would return ready() == false??
    (Other than what the Javadoc say)
    Thanks in advance!

  • Using NSAPI Plug-In from WL 5.1 in conjunction with WL6.0

    I reposting this message. I posted it to the servlet group when I
    wanted this group.
    Is it okay to use the Netscape Plug-in that came with Weblogic 5.1 and
    use Weblogic 6 server? We are having problems getting the Netscape
    Plug-in that came with Weblogic 6. We are getting incomplete web
    pages.
    Thanks,
    Ruben

    I don't think the following configuration was tested/certified?
    What kind of problems you are having? I just ran a simple load test
    accessing servlets/jsp's via nsapi plugin.
    Could you tell us how we can reproduce your problem?
    Kumar
    ruben wrote:
    I reposting this message. I posted it to the servlet group when I
    wanted this group.
    Is it okay to use the Netscape Plug-in that came with Weblogic 5.1 and
    use Weblogic 6 server? We are having problems getting the Netscape
    Plug-in that came with Weblogic 6. We are getting incomplete web
    pages.
    Thanks,
    Ruben

  • 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

  • Re:NSAPI Plug In 3.6 on NT 4.0 SP6 with WebLogic 5.1 download

    Revised the file as suggested but still get the following error in the error
    log - errors:
    errors file:
    [11/Jul/2000:14:21:00] info ( 351): successful server startup
    [11/Jul/2000:14:21:00] info ( 351): Netscape-Enterprise/3.6 SP1
    B99.036.2009
    [11/Jul/2000:14:21:52] warning ( 351): for host 127.0.0.1 trying to GET
    /helloWorld, send-file reports: can't find
    C:/Netscape/SuiteSpot/docs/helloWorld (File Not Found Error)
    [11/Jul/2000:14:22:14] warning ( 351): for host 127.0.0.1 trying to GET
    /servletimages/trans.gif, send-file reports: can't find
    C:/Netscape/SuiteSpot/docs/servletimages/trans.gif (File Not Found Error)
    [11/Jul/2000:14:22:14] warning ( 351): for host 127.0.0.1 trying to GET
    /servletimages/logo2circle.gif, send-file reports: can't find
    C:/Netscape/SuiteSpot/docs/servletimages/logo2circle.gif (File Not Found
    Error)
    [11/Jul/2000:14:22:51] warning ( 351): for host 127.0.0.1 trying to GET
    /servletimages/trans.gif, send-file reports: can't find
    C:/Netscape/SuiteSpot/docs/servletimages/trans.gif (File Not Found Error)
    [11/Jul/2000:14:22:51] warning ( 351): for host 127.0.0.1 trying to GET
    /servletimages/logo2circle.gif, send-file reports: can't find
    C:/Netscape/SuiteSpot/docs/servletimages/logo2circle.gif (File Not Found
    Error)
    [11/Jul/2000:14:26:18] info ( 351): Suspend Httpd Service
    revised obj.conf file:
    Init fn=flex-init access="C:/Netscape/SuiteSpot/https-hq2780/logs/access"
    format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%]
    \"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status%
    %Req->srvhdrs.content-length%"
    Init fn=load-types mime-types=mime.types
    Init fn="load-modules" funcs="wl-proxy,wl-init"
    shlib="c:/weblogic/bin/proxy36.dll"
    Init fn="wl-init"
    #Init fn="load-modules" funcs="init_exit,auth_exit,service_exit,term_exit"
    shlib="c:/weblogic/bin/proxy36.dll"
    #Init fn="init_exit" weblogic.properties="c:/weblogic/weblogic.properties"
    <Object name=default>
    NameTrans fn=pfx2dir from=/ns-icons dir="C:/Netscape/SuiteSpot/ns-icons"
    NameTrans fn=pfx2dir from=/mc-icons dir="C:/Netscape/SuiteSpot/ns-icons"
    NameTrans fn="pfx2dir" from="/help"
    dir="C:/Netscape/SuiteSpot/manual/https/ug"
    #NameTrans fn="pfx2dir" from="/servlets"
    dir="C:/weblogic/myserver/servletclasses/examples/servlets"
    #NameTrans fn="pfx2dir" from="/servlets"
    dir="C:/weblogic/myserver/servletclasses"
    NameTrans fn=document-root root="C:/Netscape/SuiteSpot/docs"
    #Service method="(GET|HEAD|POST|PUT)" type=text/jsp fn=wl-proxy
    WebLogicHost=localhost WebLogicPort=7001 PathPrepend=/jspfiles
    PathCheck fn=nt-uri-clean
    PathCheck fn="check-acl" acl="default"
    PathCheck fn=find-pathinfo
    PathCheck fn=find-index index-names="index.html,home.html"
    ObjectType fn=type-by-extension
    ObjectType fn=force-type type=text/plain
    Service method=(GET|HEAD) type=magnus-internal/imagemap fn=imagemap
    Service method=(GET|HEAD) type=magnus-internal/directory fn=index-common
    Service method=(GET|HEAD) type=*~magnus-internal/* fn=send-file
    AddLog fn=flex-log name="access"
    </Object>
    <Object name=cgi>
    ObjectType fn=force-type type=magnus-internal/cgi
    Service fn=send-cgi
    </Object>
    <Object name="weblogic" ppath="*/weblogic/*">
    Service fn=wl-proxy WebLogicHost=10.17.8.21 WebLogicPort=7001
    PathTrim="/weblogic"
    </Object>
    <Object name="servlets" ppath="*/servlets/*">
    Service fn=wl-proxy WebLogicHost=10.17.8.21 WebLogicPort=7001
    PathTrim="/servlets"
    </Object>

    So far I have heeded your advice and tried the suggestions you have made.
    However, I think I am still missing something. If you have the time could
    you review the following:
    Installation components:
    NT4.0 SP6
    NES 3.6
    WebLogic 5.1
    I am trying to call the HelloWorld servlet in the
    c:\weblogic\myserver\servletclasses\examples\servlets directory via the plug
    in. I can invoke the servlet using the Weblogic port:7001 directly -
    http://localhost:7001/servlets/examples/servlets/HelloWorldServlet and
    registered http://localhost:7001/helloWorld
    Here is the latest obj.conf:
    Init fn=flex-init access="C:/Netscape/SuiteSpot/https-hq2780/logs/access"
    format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%]
    \"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status%
    %Req->srvhdrs.content-length%"
    Init fn=load-types mime-types=mime.types
    Init fn="load-modules" funcs="wl-proxy,wl-init"
    shlib="c:/weblogic/bin/proxy36.dll"
    Init fn="wl-init"
    #Init fn="load-modules" funcs="init_exit,auth_exit,service_exit,term_exit"
    shlib="c:/weblogic/bin/proxy36.dll"
    #Init fn="init_exit" weblogic.properties="c:/weblogic/weblogic.properties"
    <Object name=default>
    NameTrans fn=pfx2dir from=/ns-icons dir="C:/Netscape/SuiteSpot/ns-icons"
    NameTrans fn=pfx2dir from=/mc-icons dir="C:/Netscape/SuiteSpot/ns-icons"
    NameTrans fn="pfx2dir" from="/help"
    dir="C:/Netscape/SuiteSpot/manual/https/ug"
    #NameTrans fn="pfx2dir" from="/servlets"
    dir="C:/weblogic/myserver/servletclasses/examples/servlets"
    #NameTrans fn="pfx2dir" from="/servlets"
    dir="C:/weblogic/myserver/servletclasses"
    NameTrans fn=document-root root="C:/Netscape/SuiteSpot/docs"
    #Service method="(GET|HEAD|POST|PUT)" type=text/jsp fn=wl-proxy
    WebLogicHost=localhost WebLogicPort=7001 PathPrepend=/jspfiles
    PathCheck fn=nt-uri-clean
    PathCheck fn="check-acl" acl="default"
    PathCheck fn=find-pathinfo
    PathCheck fn=find-index index-names="index.html,home.html"
    ObjectType fn=type-by-extension
    ObjectType fn=force-type type=text/plain
    Service method=(GET|HEAD) type=magnus-internal/imagemap fn=imagemap
    Service method=(GET|HEAD) type=magnus-internal/directory fn=index-common
    Service method=(GET|HEAD) type=*~magnus-internal/* fn=send-file
    AddLog fn=flex-log name="access"
    </Object>
    <Object name=cgi>
    ObjectType fn=force-type type=magnus-internal/cgi
    Service fn=send-cgi
    </Object>
    <Object name="weblogic" ppath="*/weblogic/*">
    Service fn=wl-proxy WebLogicHost=10.17.8.21 WebLogicPort=7001
    PathTrim="/weblogic"
    </Object>
    <Object name="servlets" ppath="*/servlets/*">
    Service fn=wl-proxy WebLogicHost=10.17.8.21 WebLogicPort=7001
    PathTrim="/servlets"
    </Object>
    <Object name="helloWorld" ppath="*/helloWorld/*">
    Service fn=wl-proxy WebLogicHost=10.17.8.21 WebLogicPort=7001
    </Object>
    Thanks in advance.
    Mark McCalister
    "Mark Griffith" <[email protected]> wrote in message
    news:[email protected]...
    Ok, so this is a bit different now.
    IIn article <[email protected]>, [email protected]
    says...
    Revised the file as suggested but still get the following error in the
    error
    log - errors:
    errors file:
    [11/Jul/2000:14:21:00] info ( 351): successful server startup
    [11/Jul/2000:14:21:00] info ( 351): Netscape-Enterprise/3.6 SP1
    B99.036.2009
    [11/Jul/2000:14:21:52] warning ( 351): for host 127.0.0.1 trying to GET
    /helloWorld, send-file reports: can't findYou are proxying /weblogic and /servlets
    C:/Netscape/SuiteSpot/docs/helloWorld (File Not Found Error)So /helloworld does not match eiter of those patterns.
    [11/Jul/2000:14:22:14] warning ( 351): for host 127.0.0.1 trying to GET
    /servletimages/trans.gif, send-file reports: can't findNor does /servletimages
    We do have some /servletimages uri's in some of our admin servlets so you
    may want to map this as well.
    But I dont see that these are unexplainable.
    Cheers
    mbg
    C:/Netscape/SuiteSpot/docs/servletimages/trans.gif (File Not Found
    Error)
    [11/Jul/2000:14:22:14] warning ( 351): for host 127.0.0.1 trying to GET
    /servletimages/logo2circle.gif, send-file reports: can't find
    C:/Netscape/SuiteSpot/docs/servletimages/logo2circle.gif (File Not Found
    Error)
    [11/Jul/2000:14:22:51] warning ( 351): for host 127.0.0.1 trying to GET
    /servletimages/trans.gif, send-file reports: can't find
    C:/Netscape/SuiteSpot/docs/servletimages/trans.gif (File Not FoundError)
    [11/Jul/2000:14:22:51] warning ( 351): for host 127.0.0.1 trying to GET
    /servletimages/logo2circle.gif, send-file reports: can't find
    C:/Netscape/SuiteSpot/docs/servletimages/logo2circle.gif (File Not Found
    Error)
    [11/Jul/2000:14:26:18] info ( 351): Suspend Httpd Service
    revised obj.conf file:
    Init fn="load-modules" funcs="wl-proxy,wl-init"
    shlib="c:/weblogic/bin/proxy36.dll"
    Init fn="wl-init"SNIP
    <Object name="weblogic" ppath="*/weblogic/*">
    Service fn=wl-proxy WebLogicHost=10.17.8.21 WebLogicPort=7001
    PathTrim="/weblogic"
    </Object>
    <Object name="servlets" ppath="*/servlets/*">
    Service fn=wl-proxy WebLogicHost=10.17.8.21 WebLogicPort=7001
    PathTrim="/servlets"
    </Object>
    ==================================================
    NewsGroup Rant
    ==================================================
    Rant 1.
    The less info you provide about your problem means
    the less we can help you. Try to look at the
    problem from an external perspective and provide
    all the data necessary to put your problem in
    perspective.

  • HTTP Servlet call

    Hi all,
    I have a BPM scenario where i have several conditional branches, and in one of the branch i have to make a HTTP Servlet call via HTTP adapter and pass some values from the incoming message in the HTTP post.
    Is this just like a normal HTTP adapter call or HTTP servlet is something diffrent from a normal adapter call?
    anybody has done similar HTTP servlet calls ? aplease share your thoughts.
    Thanks

    Hi,
    Its same to the normal HTTP Call but at the BPM you meight need to give conditions as you indicated...you give conditions in the Control step of BPM
    Amaresh

  • Servlets within web.xml

              I am using WLS 5.1.0 with SP6.
              Previously I was controlling servlet access via an ACL in the weblogic.properties file.
              I have now moved the servlet into the web.xml file and specified
              some security constraints on this servlet. I can access the servlet. However regardless of what type of security I specify I cannot control access of the server by anything other than the guest user. Here is the web.xml file I have been using.
              <servlet>
              <servlet-name>AuthServlet</servlet-name>
              <servlet-class>com.myapp.web.servlet.AuthServlet</servlet-class>
              </servlet>
              <servlet-mapping>
              <servlet-name>AuthServlet</servlet-name>
              <url-pattern>auth</url-pattern>
              </servlet-mapping>
              <security-constraint>
                   <web-resource-collection>
                        <web-resource-name>Test Deployment Descriptor</web-resource-name>
                        <description>Test Deployment Descriptor for test Authentication Servlet.</description>
                        <url-pattern>/cam/auth</url-pattern>
                        <http-method>GET</http-method>          
                        <http-method>POST</http-method>
                   </web-resource-collection>
                   <auth-constraint>
                        <role-name>MarkEngstrom</role-name>
                   </auth-constraint>
                   <user-data-constraint>
                        <transport-guarantee>NONE</transport-guarantee>
                   </user-data-constraint>
              </security-constraint>
              <login-config>
                   <auth-method>FORM</auth-method>
                   <realm-name>default</realm-name>
              <form-login-config>
                        <form-login-page>/form.jsp</form-login-page>
                        <form-error-page>/error.jsp</form-error-page>
                   </form-login-config>
              </login-config>
              Note : the <role-name> is a user I have specified in my weblogic.properties file. I am using the default security realm.
              I don't get any exceptions reported in the log files and I think it must be some configuration I have missed because the security constraints appear to be totally ignored.
              Does anyone have any suggestions ?.
              Thanks,
              Mark Engstrom
              

              hi, I pump to the same problem before.
              I think you url mapping when you define web resource should starts with /, or
              you say url pattern to be *
              Good luck
              "MarkE" <[email protected]> wrote:
              >
              >
              >I am using WLS 5.1.0 with SP6.
              >Previously I was controlling servlet access via an ACL in the weblogic.properties
              >file.
              >
              >I have now moved the servlet into the web.xml file and specified
              >some security constraints on this servlet. I can access the servlet.
              >However regardless of what type of security I specify I cannot control
              >access of the server by anything other than the guest user. Here is
              >the web.xml file I have been using.
              >
              > <servlet>
              > <servlet-name>AuthServlet</servlet-name>
              > <servlet-class>com.myapp.web.servlet.AuthServlet</servlet-class>
              > </servlet>
              >
              > <servlet-mapping>
              > <servlet-name>AuthServlet</servlet-name>
              > <url-pattern>auth</url-pattern>
              > </servlet-mapping>
              >
              > <security-constraint>
              >      <web-resource-collection>
              >          <web-resource-name>Test Deployment Descriptor</web-resource-name>
              >          <description>Test Deployment Descriptor for test Authentication Servlet.</description>
              >          <url-pattern>/cam/auth</url-pattern>
              >          <http-method>GET</http-method>          
              >          <http-method>POST</http-method>
              >     </web-resource-collection>
              >     <auth-constraint>
              >          <role-name>MarkEngstrom</role-name>
              >     </auth-constraint>
              >     <user-data-constraint>
              >          <transport-guarantee>NONE</transport-guarantee>
              >     </user-data-constraint>
              > </security-constraint>
              >
              > <login-config>
              >      <auth-method>FORM</auth-method>
              >     <realm-name>default</realm-name>
              > <form-login-config>
              >           <form-login-page>/form.jsp</form-login-page>
              >           <form-error-page>/error.jsp</form-error-page>
              >      </form-login-config>
              > </login-config>
              >
              >Note : the <role-name> is a user I have specified in my weblogic.properties
              >file. I am using the default security realm.
              >
              >I don't get any exceptions reported in the log files and I think it must
              >be some configuration I have missed because the security constraints
              >appear to be totally ignored.
              >
              >Does anyone have any suggestions ?.
              >
              >Thanks,
              >
              >Mark Engstrom
              >
              

  • Is this possible??? servlet to servlet?

    Is it possible for one servlet to make some sort of call to another servlet and recieve information back without losing "control"? For example, you start Servlet A and you send it a username and password. Servlet A then calls Servlet B, and sends Servlet B the same username and password. Servlet A should then receive some information back from Servlet B and then Servlet A continues processing. (please don't get stuck as to why I don't send servlet B the username and password and do everything in one servlet.)
    Is this situation possible? If it is can someone point me in a direction on how to do this? Preferably with some example code if it's available.
    I'd really appreciate some help on this.
    Thanks,
    James

    I actually had to solve this problem. There are other servlets running within the same container/process as my own who's code I didn't have access to. My first attempt was to call the other servlet(s) via the URLConnection class, however, this option presents some complications when https is employed. It does so especially when using an unsigned certificate for testing. Below is the code I used to call a servlet within the same container process and a servlet to serve as an example of how to use it.
    ***** ServletCaller.java ***********
    import java.lang.reflect.Method;
    import javax.servlet.http.*;
    import javax.servlet.*;
    public class ServletCaller
         public static void callServlet( String servletName,                     ServletConfig config, HttpServletRequest req,                     HttpServletResponse resp ) throws Exception
              Class [] doGetArgTypes =                                    {HttpServletRequest.class,
                   HttpServletResponse.class};
              Class [] initArgType = {ServletConfig.class};
              Object [] doGetArgs = {req,resp};
              Object [] initArg = {config};
              Class clz = Class.forName(servletName);
              Object servlet = clz.newInstance();
              Method initMethod = clz.getMethod("init",initArgType);
              Method doGetMethod = clz.getMethod                              ("doGet",doGetArgTypes);
              initMethod.invoke(servlet,initArg);
              doGetMethod.invoke(servlet,doGetArgs);
    ******* TestServlet.java ***********
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import CustomRequest; // Extends HttpServletRequest
    import CustomResponse; // Extends HttpServletResponse
    import ServletCaller;
    public class TestServlet extends HttpServlet
         protected void doGet(HttpServletRequest req,                          HttpServletResponse resp)
              throws ServletException, IOException
         {try{
              CustomRequest r = new CustomRequest(req);
              CustomResponse rp = new CustomResponse();
              r.setQueryString("ARG1=VALUE1&ARG2=VALUE2&"
                   +"ARG3=&ARG4=VALUE4");
              ServletCaller.callServlet("SnoopServlet",
                   this.getServletConfig(),r,rp);
              // Get response from CustomResponse object
              String s = rp.getOutput();
              resp.setContentType("text/html");
              resp.getOutputStream().println(s);
         }catch(Exception e){throw new IOException(e.getMessage());}
    The CustomRequest and CustomResponse class definitions are HUGE, but were relatively easy to build. If you're having trouble building them I can post them too.
    Hope this helps.
    --Kurt                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • NSAPI proxy and SSL?

     

    Thanks for the response.
    First of all, iPlanet is just the new name for NES 4.0 (and above versions).
    That´s because of the Netscape&Sun alliance.
    We already have a separate instance of NES running on port 443 with a
    certificate installed. And we modified its obj.conf to forward requests to
    WLCS.
    I´m going to try the debug configuration that you told me. Anyway, if you
    know about any issue that we could be missing please tell me about.
    Thanks.
    Not sure how iPlanet is different from NES, but I have this
    configuration running for a client:
    browser <--- https --> NES 3.6 / NSAPI proxy plug-in <---- http ----->
    WLS 5.1
    What I did was, as per documentation from BEA:
    * I created a separate instance of NES listening on port 443 ( HTTPS ),
    and installed the certificate for that instance.
    * I then configure the obj.conf of THAT created instance to forward any
    matching requests to WLS.
    What you can do is apply the debug parameters in obj.conf so that you
    can see what is being received and how it is being passed to WLS.
    John
    Gustavo Mateos wrote:
    This is the situation we have:
    browser <-----> iPlanet Web Server (4.1) <-----> NSAPI proxy plugin
    <------>
    WLCS 3.1
    At the begining we had SSL enabled in the WLCS but it doesn´t workthrough
    the proxy plugin. So we disabled SSL in the WLCS and connected all with
    clear connections by modifying obj.conf in order to redirect all the
    requests arriving the Web Server to WLCS. So far so good.
    But the next step was to secure the whole application.So we´ve installeda
    certificate in the iPlanet Web Server and enabled SSL encryption there.Now
    the situation is:
    browser <---httpS--> iPlanet Web Server (4.1) <---http--> NSAPI proxyplugin
    <---http---> WLCS 3.1
    But it´s doesn´t seem to work like that. In fact, the home page isserved
    under SSL but it tries to get back to insecure connections whenrequesting
    any other page.
    The only change we have made to the obj.conf is the lines needed to loadthe
    libproxy.so library and to redirect all the request arriving the webserver
    to the WLCS.
    Any idea about what is happening?
    The plugin architecture of WLCS 3.x (where x is 1 or 2) is such that
    it
    will always use HTTP to communicate with the WLCS server, regardless ofthe
    protocol being used to talk to the web server.
    I am not sure that I completely understand what problem you areencountering. Can you describe it more fully? Can you post youobj.conf
    file?
    Robert
    Gustavo Mateos wrote:
    We are trying to do that but it doesn´t work ok. We had to disable
    SSL
    in our WLCS31 server and enable SSL in the iPlanet server. Then theiPlanet
    redirects all the requests to WLCS (via NSAPI proxy). But WLCS still
    receives https requests when we supposed that all the information sent
    through the plugin is clear http.Any help please?Gustavo.
    >--
    Homepage: http://homepages.tig.com.au/~jmsalvo/
    Public Key:
    http://pgp5.ai.mit.edu:11371/pks/lookup?op=get&search=0x51F47D34

Maybe you are looking for

  • I cannot send an email from my iphone

    I have entered all of the information for my in-coming and outgoing server into my iphone 4s.  However, I cannot send an email  and the message reads as follows "The sender address XX.net was rejected by the server.

  • No data for daily report sent from my PC

    Since a clean install of Windows 7 Ultimate on my PC, no data is being sent to the Cisco server from my PC. Previously I was running the RC version of Windows 7 Ultimate on this PC, with the same router and configuration, and no problems in being abl

  • Will "Tiger Server - Xserve Install DVD" install on non-Xserve Mac ?

    Hi All... I had four G5 Xserves (now sold) but I still hold and own the Tiger Server DVD and Licences. I am buying an old Mac Mini that had Tiger originally installed, but has been upgraded to Leopard... my question is will my old DVD "Tiger Server -

  • Procure to Pay flow in Details( if possible) the Accounting part?

    Hello All, Could you guys tell me the procure to pay flow and (if possible) the accounting part in every stage in the detail way and that should cover in and out of flow and that could be very useful and great for me in the implementation for gaining

  • Include jsp page in servlet

    Hi, How an external jsp or html page can be included within a servlet. like, One servlet is including different pages within it's body based different condition and arggument passed to it. Hope for your help. Thank you.