[Fwd: Security problem accessing MBeanServer from a servlet]

Reposting to Security and Servlet newsgroups.
-------- Original Message --------
Subject: Security problem accessing MBeanServer from a servlet
Date: 10 Feb 2004 13:02:09 -0800
From: Alain <[email protected]>
Reply-To: Alain <[email protected]>
Organization: BEA NEWS SITE
Newsgroups: weblogic.developer.interest.management
Hi,
I am trying to understand how WLS 7.0 secures a call to an MBean. Got
the following
scenario:
- I am in a servlet context
- I have created and registered an MBean with the WLS MBeanServer. Fine
so far
- Within the same call I can retrieve the MBean attributes. Fine so far
- I keep the MBeanServer reference in an object global to the servlet
context
The problem:
- When I do another request and try to use the cached MBeanServer
instance to
access the MBean, I get the following error:
weblogic.management.NoAccessRuntimeException: Access not allowed for
subject:
principals=[], on ResourceType ...
Any idea?
Alain

PaulF <paulf@reply_in_newsgroup.com> wrote:
On 10 Feb 2004 13:02:09 -0800, Alain <[email protected]> wrote:
Hi,
I am trying to understand how WLS 7.0 secures a call to an MBean. Got
the following
scenario:
- I am in a servlet context
- I have created and registered an MBean with the WLS MBeanServer.Fine
so far
- Within the same call I can retrieve the MBean attributes. Fine sofar
- I keep the MBeanServer reference in an object global to the servlet
context
The problem:
- When I do another request and try to use the cached MBeanServer
instance to
access the MBean, I get the following error:
weblogic.management.NoAccessRuntimeException: Access not allowed for
subject:
principals=[], on ResourceType ...
Any idea?
AlainWhat ResourceType are you trying to access. From the Exception you're
trying to access it as an Anonymous user (principals=[]) and evidently
you're attempting to access something that is protected. I can't tell
what
from the snippet you've included.
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Thanks Paul for your reply.
You are right. I can access my custom MBeans if I am authenticated for example
as an Administrator. My problem is that I want any application to access this
MBean authenticated or not. I am trying to find how I could grant permission to
this MBean to everyone. Still searching.
Thanks.

Similar Messages

  • Security problem accessing MBeanServer from a servlet

    Hi,
    I am trying to understand how WLS 7.0 secures a call to an MBean. Got the following
    scenario:
    - I am in a servlet context
    - I have created and registered an MBean with the WLS MBeanServer. Fine so far
    - Within the same call I can retrieve the MBean attributes. Fine so far
    - I keep the MBeanServer reference in an object global to the servlet context
    The problem:
    - When I do another request and try to use the cached MBeanServer instance to
    access the MBean, I get the following error:
    weblogic.management.NoAccessRuntimeException: Access not allowed for subject:
    principals=[], on ResourceType ...
    Any idea?
    Alain

    PaulF <paulf@reply_in_newsgroup.com> wrote:
    On 10 Feb 2004 13:02:09 -0800, Alain <[email protected]> wrote:
    Hi,
    I am trying to understand how WLS 7.0 secures a call to an MBean. Got
    the following
    scenario:
    - I am in a servlet context
    - I have created and registered an MBean with the WLS MBeanServer.Fine
    so far
    - Within the same call I can retrieve the MBean attributes. Fine sofar
    - I keep the MBeanServer reference in an object global to the servlet
    context
    The problem:
    - When I do another request and try to use the cached MBeanServer
    instance to
    access the MBean, I get the following error:
    weblogic.management.NoAccessRuntimeException: Access not allowed for
    subject:
    principals=[], on ResourceType ...
    Any idea?
    AlainWhat ResourceType are you trying to access. From the Exception you're
    trying to access it as an Anonymous user (principals=[]) and evidently
    you're attempting to access something that is protected. I can't tell
    what
    from the snippet you've included.
    Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
    Thanks Paul for your reply.
    You are right. I can access my custom MBeans if I am authenticated for example
    as an Administrator. My problem is that I want any application to access this
    MBean authenticated or not. I am trying to find how I could grant permission to
    this MBean to everyone. Still searching.
    Thanks.

  • Accessing EJBs from a servlet

    Hi everyone,
    I deployed my EJB component in an Oracle 8.1.7 database and I try to access it from a servlet.
    If I run my servlet from JDeveloper 3.2 (Web-to-Go), it all works fine. If I run my servlet from JRun 3.01 or from Tomcat 3.2.1, I get the following exception:
    javax.naming.NoInitialContextException: Need to specify class name in environmen
    t or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at javax.naming.NamingException.<init>(NamingException.java:104)
    at javax.naming.NoInitialContextException.<init>(NoInitialContextException.java:58)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:649)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:279)
    at javax.naming.InitialContext.lookup(InitialContext.java:349)
    at com.cognicase.framework.base.U0003.AbstractORB.getBean(AbstractORB.java:285)
    at com.cognicase.framework.base.U0003.AbstractORB.getBean(Compiled Code)
    at com.cognicase.demo.U2007BL.U2007WP_Users.lookupBean(U2007WP_Users.java:60)
    at com.cognicase.framework.is.U0103.AbstractBeanWrapper.beforeBeanCall(AbstractBeanWrapper.java:121)
    at com.cognicase.demo.U2007BL.U2007WP_Users.valideUser(U2007WP_Users.java:77)
    at com.cognicase.demo.U2000WB.U2000MW_WorkSpace.CallEjb(Compiled Code)
    at com.cognicase.demo.U2000WB.U2000MW_WorkSpace.doValidateLogin(Compiled Code)
    at com.cognicase.demo.U2000WB.U2000MW_WorkSpace.processService(U2000MW_WorkSpace.java:98)
    at Demo_0100_01.service(Demo_0100_01.java:128)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
    at org.apache.tomcat.core.Handler.service(Compiled Code)
    at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
    at org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
    at org.apache.tomcat.core.ContextManager.service(Compiled Code)
    at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Compiled Code)
    at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
    at java.lang.Thread.run(Compiled Code)
    If I add my servlet classes, aurora_client.jar, mts.jar, vbjapp.jar and vbjorb.jar files to the CLASSPATH, it works fine.
    The behavior is the same in JRun and Tomcat.
    I don't like this solution since I have to make the CLASSPATH point to my application classes at the web server level instead of at the application context level.
    Has anyone been able to solve this problem?
    Thanks for your help.
    null

    Yes, I did. Actually, if I run my servlet in JDeveloper (Web-to-Go), it all works fine. I also extracted the code that calls the EJB from the servlet and I tested it in a small Java application, and it also works fine.
    Things stop to work when I deploy my servlet in JRun or in Tomcat.
    It appears that my code is correct, but the environment I try to run it is not, and I can't figure out what's wrong.
    Can anyone help me?
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Sandeep Desai ([email protected]):
    Have you provided the environmental settings in the servlet.
    It should be :
    import oracle.aurora.jndi.sess_iiop.ServiceCtx;
    env.put(Context.URL_PKG_PREFIXES, "oracle.aurora.jndi");
    env.put(Context.SECURITY_PRINCIPAL, username);
    env.put(Context.SECURITY_CREDENTIALS, password);
    env.put(Context.SECURITY_AUTHENTICATION, ServiceCtx.NON_SSL_LOGIN);
    InitialContext ctx = new InitialContext(env);
    Object obj = ctx.lookup("test/EJBHome");
    HomeObject home = PortableRemoteObject.narrow(
    obj,"HomeObject.class");
    RemoteObject remote = home.create();
    This should make it work!!
    <HR></BLOCKQUOTE>
    null

  • SYSTEM ERROR : com/adobe.processingexception:Problem accessing data from De

    Hi SAP Guru,
    We have configured ADOBE for separate ABAP server and Java Server.
    But when I am execution report FP_TEST_00 getting below error
    ADS: com.adobe.ProcessingException: Problem accessing d(200101) Message no. FPRUNX001
    FP_CHECK_DESTINATION_SERVICE
    FP_CHECK_HTTP_DATA_TRANSFER giving error
    SYSTEM ERROR : com/adobe.processingexception:Problem accessing data from Destination dest :FP_ICF_DATA_IP1//sap/bc/fp/form/layout/FP_FORM_SECURITY_TEST.XDP?fp-language=DE
    But report fp_pdf_test_00 is giving postive response.
    I have troubles hooted according to note 944221 , my configuration is ok but no success.
    Please help to resolve this issue.

    Hi,
    Check your ADS Connection .
    Do one thing
    Go to T-code "SM59"  -  "RFC Destinations (Display/Maintain)"
    select "HTTP Connections to External Server" - > ADS
    Double click there and check the all the settings " Administrations "  ,  Technical setting , Logon and security , Special option .
    Please check the log on and pass word with the help of your SAP BASIS consultant it will work fine .

  • What is the easiest way to access the router from an iPad?  I have no problems accessing it from my laptop.  Even though I am entering the address in the left address box, not the Google search box, it wants to do either a search, or add www beginning of

    What is the easiest way to access the router from an iPad?  I have no problems accessing it from my laptop.  Even though I am entering the address in the left address box, not the Google search box, it wants to do either a search, or add www to the beginning of the IP address.
    I usually can eventually access the router, but it is way to much trouble.  However, I use my iPad hundreds of times more often than my laptop.

    Are you typing http:// in front of the IP address of the router? e.g. http://192.168.0.1
    Sometimes, and with some routers it doesn't seem to like it if you miss off the http://

  • ADS, Problem accessing data from Destination

    Hello All,
    I'm facing an error when executing transaction TRIP.
    If I use the standard Adobe form it's OK no error.
    If I use a Z-form copy of this standard form (after doing customizing in PE03) I have an error message: Error while initiating travel form
    When I was deeper in the debugging I found that there was an exception rose which is:
    ADS: com.adobe.ProcessingException: com.adobe.ProcessingException: Problem accessing data from Destination: ...
    I found some threads talking about ADS and transaction SM59u2026
    When testing the connection in tx SM59 I have an error message 403: forbidden access
    Is it the cause of the error generated in TRIP tx?
    If yes why using the standard form works fine??
    Thank you in advance for your help.
    Regards,
    Moez.

    Hello Otto,
    Yes I'm using the same user for the two forms.
    It works for the standard form and not for the Z-form.
    That's why I'm expecting a customizing issue to resolve this problem.
    All solution that I found are talking about administration and Visual Admin tool.
    Regards,
    Moez.

  • Com.adobe.processingException : Problem accessing data from destination

    hi guys,
    i have an ECC 6.0 server(db : sql) and i am getting the below error while testing the destination service
    (((com.adobe.processingException:Problem accessing data from destination
    dest: fp_icf_data_isp)))
    i checked rfc connection and it is working fine .
    i dont remember the ADS_AGENT password for checking the user.but i have provided all the required roles for that.
    please guide me to resolve this issue

    Hi
    When you say you checked the rfc are you refering to the one in SM59? The fp_icf_data_isp should be an entry in the visual admin of the server that runs the ADS. In the visual admin under server->services->destinations goto to the http folder and check that there is an entry with that name there. Also the address should be http://<host of abap system>:<abap http port> and the client field and username field should be filled in.
    Regards
    Thashin

  • Problem accessing data from Destination: dest:FP_ICF_DATA_ SID //sap/bc/fp/

    This error message has many threads.  However, I have not seen any postings for NW CE 7.1.  The configuration for this version of JAVA and ADS is very different from any of the documentation that we have found.  We suspect a config issue but cannot find any pertinent documentation for ADS configuration and NW CE 7.1 (we are SP11). 
    Where can we find ADS configuration documentation for NW CE 7.1?
    Please help.
    So far, we are mainly using test FP_CHECK_DESTINATION_SERVICE which seems to prove that the destination configuration is the problem.  Fortunately, some of the configuration was automated. But not all.

    Thanks for the help, so far.  I have gotten one step closer by manually starting all processes and services related to Adobe Document Services.  CE 7.1 is quite a bit different.
    I can now get a byte count returned with the test FP_CHECK_DESTINATION_SERVICE in SE38 without checking the "with destination service" box.  When I check the box, I still get the "Problem accessing data from Destination: dest:FP_ICF_DATA_<SID>//sap/bc/fp/ message".
    The problem is related to the return of the rendering service from the Java side via the Java destination service.
    Note that the ABAP side with the problem is ECC 6.0 EHP3 SP1.

  • I loaded microsoft office on my mac airbook. I have no problem accessing it from my user. When the other log on user is clicked the software icons are not avauilable. How do I have any user on my airbook have access. i.e. my wife

    I loaded microsoft office on my mac airbook. I have no problem accessing it from my user. When the other log on user is clicked the software icons are not avauilable. How do I have any user on my airbook have access ? . i.e. my wife

    Greetings Niel
    I was able to copy down the Word, Excel and PowerPoint icons and access "however" when I exit out of the guest user it deletes them from the tool tray at the bottom.... I need them to stay there not have to copy them down..
    Can you still assist?

  • Problem accessing ejb from servlet

    Hi,
    I'm aving a problem accessing a stateful session bean from a servlet. I'm using a jndi lookup to do it because I need that a client has its own bean reference...
    My code into the service method is:
    InitialContext ctx;
    try {
    ctx = new InitialContext();
    carrelloService = (CarrelloLocal)ctx.lookup("java:comp/env/ejb/Carrello");
    and I have a reference to EJB into web.xml:
    <ejb-local-ref>
    <ejb-ref-name>ejb/Carrello</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <local-home></local-home>
    <local>carrello.model.CarrelloLocal</local>
    </ejb-local-ref>
    If I use @EJB annotation to inject the servlet, it works fine.
    Instead using jndi lookup throws a NamingException because it doesn't find java:comp/env/ejb/Carrello entry.
    Any idea about the problem?

    Here's something simple that I have that works:
    <p> </p>
    SimpleBean
    <p> </p>
    @Stateless(name="SimpleBean")
    public class SimpleBeanBean implements SimpleBeanLocal {
    <p> </p>
    web.xml; -- note I use a whacko ejb-ref-name just to make it obvious where I'm using it.
    <p> </p>
        <ejb-local-ref>
            <ejb-ref-name>ejb_mapping_doodad/SimpleBean</ejb-ref-name>
            <ejb-ref-type>Session</ejb-ref-type>
            <local>sab.otn681398.ejb.SimpleBeanLocal</local>
        </ejb-local-ref><p> </p>
    servlet:
    <p> </p>
    package sab.otn681398.web;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import sab.otn681398.ejb.SimpleBeanLocal;
    public class TestServlet extends HttpServlet  {
        private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
        private static final String SIMPLE_BEAN_JNDI = "ejb_mapping_doodad/ASimpleBean";
        private final boolean USEENC = true;
        private SimpleBeanLocal simple = null;
        public void init(ServletConfig config) throws ServletException {
            super.init(config);
        public void doGet(HttpServletRequest request,
                          HttpServletResponse response) throws ServletException, IOException {
            response.setContentType(CONTENT_TYPE);
            PrintWriter out = response.getWriter();
             try {
                if(simple==null) {
                    simple = createSimple();
            } catch(NamingException ne) {
                throw new ServletException("Error in looking up the EJB", ne);
            out.println("<html>");
            out.println("<head><title>TestServlet</title></head>");
            out.println("<body>");
            out.printf("&lt;p&gt;The %s bean has been hit: %s times&lt;/p&gt;", simple, simple.getHitCount());
            out.println("</body></html>");
            out.close();
        private SimpleBeanLocal createSimple() throws NamingException {
          return (USEENC==true? createSimpleViaENC(): createSimpleViaName());
        private SimpleBeanLocal createSimpleViaENC() throws NamingException {
            InitialContext ic = new InitialContext();
            SimpleBeanLocal simple = (SimpleBeanLocal)ic.lookup("java:comp/env/" + SIMPLE_BEAN_JNDI);
            return simple;
        private SimpleBeanLocal createSimpleViaName() throws NamingException {
            InitialContext ic = new InitialContext();
            SimpleBeanLocal simple = (SimpleBeanLocal)ic.lookup(SIMPLE_BEAN_JNDI);
            return simple;
    }<p> </p>
    -steve-

  • PROBLEM ACCESSING OWA FROM THE INTERNET TO THE CHILD DOMAIN MAIL SERVER.

    Dear All,
    Referring to the forum that I sent to the group sometime back which was successfully sorted. I have received a call from the users in the child domain, where they are not able to access OWA from the Internet. below is the error they are getting
    Log OffOutlook Web Access could not connect to Microsoft Exchange. If the problem continues,
    contact technical support for your organization.Click here to continue working.RequestUrl:
    https://mail.mydomain.com:443/owa/forms/basic/BasicReadMessage.aspx?ae=Item&t=IPM.Note&id=
    RgAAAADaPzSfz396RJbcAffXnu8fBwCXRKkddfkskskZ0zGXAAAAACF9AACXRKFoskTMSrrSWkkksAAAACgcAAAJUser: mynameEX Address: /o
    =First Organization domain/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=myname1SMTP Address:
    [email protected]
    version: 8.3.348.2ExceptionException type:Microsoft.Exchange.Data.Storage.ConnectionFailedTransientExceptionException
    message: Cannot open mailbox /o=First Organization domain/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/
    cn=Recipients/cn=myname1.Call stackMicrosoft.Exchange.Data.Storage.ConnectionCachePool.OpenMailbox(String serverDn,
    String userDn, String mailboxDn, Guid mailboxGuid, Guid mdbGuid, Object identity, ConnectFlag connectFlag, OpenStoreF
    lag openStoreFlag, CultureInfo cultureInfo, String clientInfoString, Boolean secondTry)Microsoft.Exchange.Data.Storage.
    ConnectionCachePool.OpenMailbox(String serverDn, String userDn, String mailboxDn, Guid mailboxGuid, Guid mdbGuid, Object
    identity, ConnectFlag connectFlag, OpenStoreFlag openStoreFlag, CultureInfo cultureInfo, String clientInfoString,
    Boolean secondTry)Microsoft.Exchange.Data.Storage.MailboxSession.Connect()Microsoft.Exchange.Clients.Owa.Core.
    UserContext.get_MailboxSession()Microsoft.Exchange.Clients.Owa.Basic.OwaForm.OnLoad(EventArgs e)Microsoft.Exchange.
    Clients.Owa.Basic.ReadMessage.OnLoad(EventArgs e)System.Web.UI.Control.LoadRecursive()System.Web.UI.Page.
    ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)Inner
    ExceptionException type: Microsoft.Mapi.MapiExceptionNetworkErrorException message: MapiExceptionNetworkError:
    Unable to make connection to the server. (hr=0x80004005, ec=2423) Diagnostic context: ...... Lid: 13720 dwParam:
    0x6BA Msg: EEInfo: Flags: 0 Lid: 11672 dwParam: 0x6BA Msg: EEInfo: NumberOfParameters: 0 Lid: 16280 dwParam: 0x6BA
    Msg: EEInfo: ComputerName: n/a Lid: 8600 dwParam: 0x6BA Msg: EEInfo: ProcessID: 18036 Lid: 12696 dwParam: 0x6BA Msg:
    EEInfo: Generation Time: 2014-12-12 12:01:11:86 Lid: 10648 dwParam: 0x6BA Msg: EEInfo: Generating component: 18 Lid:
    14744 dwParam: 0x6BA Msg: EEInfo: Status: 11004 Lid: 9624 dwParam: 0x6BA Msg: EEInfo: Detection location: 320 Lid:
    13720 dwParam: 0x6BA Msg: EEInfo: Flags: 0 Lid: 11672 dwParam: 0x6BA Msg: EEInfo: NumberOfParameters: 1 Lid: 8856
    dwParam: 0x6BA Msg: EEInfo: prm[0]: Unicode string: MX4 Lid: 19778 Lid: 27970 StoreEc: 0x977 Lid: 17730 Lid: 25922
    StoreEc: 0x977 Call stackMicrosoft.Mapi.MapiExceptionHelper.ThrowIfError(String message, Int32 hresult, Int32 ec,
    DiagnosticContext diagCtx)Microsoft.Mapi.ExRpcConnection.Create(ConnectionCache connectionCache,
    ExRpcConnectionCreateFlag createFlags, ConnectFlag connectFlags, String serverDn, String userDn, String user,
     String domain, String password, String httpProxyServerName, Int32 ulConMod, Int32 lcidString, Int32 lcidSort,
    Int32 cpid, Int32 cReconnectIntervalInMins, Int32 cbRpcBufferSize, Int32 cbAuxBufferSize)
    Microsoft.Mapi.ConnectionCache.OpenMapiStore(String mailboxDn, Guid mailboxGuid, Guid mdbGuid,
    ClientIdentityInfo clientIdentity, String userDnAs, OpenStoreFlag openStoreFlags,
    CultureInfo cultureInfo, String applicationId)Microsoft.Mapi.ConnectionCache.
    OpenMailbox(String mailboxDn, Guid mailboxGuid, Guid mdbGuid, WindowsIdentity
    windowsIdentityAs, String userDnAs, OpenStoreFlag openStoreFlags, CultureInfo cultureInfo,
    String applicationId)Microsoft.Exchange.Data.Storage.ConnectionCachePool.OpenMailbox(String
    serverDn, String userDn, String mailboxDn, Guid mailboxGuid, Guid mdbGuid, Object identity,
    ConnectFlag connectFlag, OpenStoreFlag openStoreFlag, CultureInfo cultureInfo, String clientInfoString,
    Boolean secondTry)
    Your Usual support will b greatly appreciated.
    Regards
    Michael

    Hello,
    Edge server is not used for client comunication (OWA, ActiveSync etc). You should configure firewall rules to point to your CAS server or (more secure method) reverse proxy.
    Hope it helps,
    Adam
    www.codetwo.com
    If this post helps resolve your issue, please click the "Mark as Answer" or "Helpful" button at the top of this message. By marking a post as Answered, or Helpful you help others
    find the answer faster.

  • Problem accessing variables from java file to JSP page

    Hello Everyone,
    I have small problem accessing my method variables from my java bean file to a JSP page. can some please take a look and tell me why I can't populate my JSP page, I've been trying all day to get this done!!!
    This is my Java file
    package dev;
    import java.io.*;
    import java.util.*;
    public class RoundDetail2
    public String string_gameID;
    public int string_card1;
    public String readDetail_topLayer;
    public static final String SUITS[] = {" ", "Clubs", "Hearts", "Spades", "Diamonds", "Joker", "FaceDown"};
    public static final String VALUES[] = {"Joker ","Ace", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Jack", "Queen", "King"};
    public static final String SuitVALUES[] = {" ","1","2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14"};
    public RoundDetail2() throws FileNotFoundException
    DataInputStream inFile=
                 new DataInputStream(
                    new BufferedInputStream(
                   new FileInputStream("C:/apps/jakarta-tomcat-4.0.6/webapps/ROOT/WEB-INF/classes/dev/Data_452SY2.txt")));
    try { 
                 while((readDetail_topLayer = inFile.readLine()) != null)
              StringTokenizer tokenizer_topLayer = new StringTokenizer(readDetail_topLayer,"\t", true);
                   while  (tokenizer_topLayer.hasMoreTokens())
                        string_gameID = tokenizer_topLayer.nextToken();
         catch(IOException e)
                    System.out.println(e.getMessage());
         Thanks KT

    ......How are you declaring the class in your JSP? ... are you instantiating it as a bean using the useBean tag, or just instantiating it in your code like normal.
    Maybe you could post the relevant JSP code too?
    Hello again,
    Only the last string is populating after the file has be tokenized. What I'll like to accomplish is passing the very first string in the file. I did not get too far in the JSP file setup because the code is still in it's testing stage, but any help will be highly appreciated.
    Here is the JSP code
    <%@page import="dev.*" %>
    <%@page session="true" language="java" import="java.io.*" %>
    <jsp:useBean id="wagerhist" scope="request" class="dev.RoundDetail2" />
    <html>
    <head>
    <title>Round Detail</title>
    <body>
      <table width="530" bordercolor="#000000" valign="top">
        <tr>
              <td align="left"  width="19%">Game ID<%=wagerhist.string_gameID%></td>
              <td align="left"  width="30%">  </td>
              <td align="left"  width="20%">card1</td>
              <td align="left"  width="31%">  </td>
            </tr>
      </table>
    </body>
    </html>

  • Problem Calling JNI from a servlet

    Hi guys,
    How can I trace a C program called from a servlet using JNI ? The problem is a cant see the standard output of the C program because I call it from an applet, not from the console. I would preffer not to generate an error output from the C program, only see the text output this program outputs to the console.
    Thanks.

    Have you tried adding a pipe to the calling command?
    For example:
    Process p = Runtime.getRuntime().exec("myutil.exe > output.txt");
    p.waitFor();
    Once the program has finished, the output from the myutil.exe can be found in the file output.txt.
    HTH

  • Problem Accessing PayPal from All Computers...

    Hi All,
    I've been searching high and low both on Google and in this forum and can't find a resolution to this.
    I have an Airport Extreme and suddenly I can no longer access PayPal on either my Mac or 2 other PCs (one WinXP, one Ubuntu - "Google Chrome could not find paypal.com").
    Given this is happening across all computers connected to my router it would seem the problem lies there. I reset it to the factory defaults and recreated my wireless network but the problem persists.
    I can use my cell phone to create a hotspot network. When I use that network I can connect to Paypal successfully, so it would seem the problem isn't on PayPal's end.
    Ideas?
    Thanks very much in advance!
    n

    Update on the above:
    I ran Disk Utility on my Mac and repaired permissions, which turned up several permissions errors related to Airport Utility. I also ran "Verify Disk" and it told me the boot disk needed repairing, which I did. I then repaired permissions again and now, unexplainably, I can access PayPal, from all computers.
    Hope this helps someone.

  • Jintegra problem - accessing Matlab from Java??

    Hi:
    Sorry if this post doesn't belong here!!
    I am accessing Matlab from JAVA using JIntegra for COM. I tried running the example in their website.
    (http://j-integra.intrinsyc.com/support/com/doc/other_examples/Matlab.htm)
    I have also posted the example below. I am using their trial version and have included all the jars as said. I get the an unexpected output (all zero's) for reading a variable in the matlab workspace. I don't understand why I get this. Can anyone let me know if this runs for you??
    Thanks
    Pavan
    Example code from Jintegra website:
    public class MatlabExample {
    public static void main(java.lang.String[] args) throws Exception {
    try {
    // DCOM authentication: Make sure NT Domain, NT User, NT Password are valid credentials.
    // Uncomment this line if MatlabExample.java remotely accesses MATLAB :
    // com.linar.jintegra.AuthInfo.setDefault("NT DOMAIN", "NT USER", "NT PASSWORD");
    // Create the MATLAB object
    // Specify host name or IP address of MATLAB machine as parameter if
    // MatlabExample.java remotely accesses MATLAB.
    // mlapp.MLApp mlApp = new mlapp.MLApp("123.456.789.0");
    mlapp.MLApp mlApp = new mlapp.MLApp();
    String result = mlApp.execute("a = [1 2 3 4; 5 6 7 8;]");
    System.out.println("Execute result is " + result);
    double mreal[][] = new double[2][4];
    double mimage[] = new double[0];
    mlApp.getFullMatrix("a", "base", new Object[]{mreal}, new Object[]{mimage});
    for (int i = 0; i < 2; i++) {
    for (int j = 0; j < 4; j++) {
    System.out.println(mreal[i][j]);
    } finally {
    com.linar.jintegra.Cleaner.releaseAll();
    }

    ......How are you declaring the class in your JSP? ... are you instantiating it as a bean using the useBean tag, or just instantiating it in your code like normal.
    Maybe you could post the relevant JSP code too?
    Hello again,
    Only the last string is populating after the file has be tokenized. What I'll like to accomplish is passing the very first string in the file. I did not get too far in the JSP file setup because the code is still in it's testing stage, but any help will be highly appreciated.
    Here is the JSP code
    <%@page import="dev.*" %>
    <%@page session="true" language="java" import="java.io.*" %>
    <jsp:useBean id="wagerhist" scope="request" class="dev.RoundDetail2" />
    <html>
    <head>
    <title>Round Detail</title>
    <body>
      <table width="530" bordercolor="#000000" valign="top">
        <tr>
              <td align="left"  width="19%">Game ID<%=wagerhist.string_gameID%></td>
              <td align="left"  width="30%">  </td>
              <td align="left"  width="20%">card1</td>
              <td align="left"  width="31%">  </td>
            </tr>
      </table>
    </body>
    </html>

Maybe you are looking for