RuntimeException

This is by far the most unfortunate mistake (for me, anyway) because it's just so * beep * wave. I do not understand why this error is popping up. I have 2 pop-up dialog boxes; the other one is open. After that open is closed (and former is pushed to the top of the stack of the screen), I get this error.

you are right, and I also had this problem on BlackBerry strom.

There are therefore two solution to solve this problem or the dialog box use invokelater or create your own popupscreen.

for the use of call later, the code is like this:

UiApplication.getUiApplication().invokeLater(new Runnable()
{
    public void run()
        {
      Dialog.alert("hello");
    }
});

Tags: BlackBerry Developers

Similar Questions

  • HomeScren.supportsIcons () throws a RuntimeException

    When the following code is executed on a device or a simulator with OS 6.0 that has an active theme with a GIF animated for the bottom of the home screen, a RuntimeException ' Index 1 > = 1 ' is thrown:

    try {
        updateIcons();
    } catch (RuntimeException e) {
        Logger.logError("Runtime exception: " + e.getMessage());
    }
    private void updateIcons() {
        Logger.logDebugInfo("updateIcons");
    
        if (HomeScreen.supportsIcons()) {
            Logger.logDebugInfo("The current theme supports icons");
            HomeScreen.updateIcon(Bitmap.getBitmapResource("Main Icon.png"), 0);
            Logger.logDebugInfo("main icon updated");
            HomeScreen.setRolloverIcon(Bitmap.getBitmapResource("Main Icon Active.png"), 0);
            Logger.logDebugInfo("rollover icon set");
        } else {
            Logger.logDebugInfo("The current theme does not support icons");
        } 
    
        Logger.logDebugInfo("End of updateIcons");
    }
    

    The recorder is a wrapper class for net.rim.device.api.system.EventLogger.

    The output of the code above in the event log is:

    updateIcons
    Runtime exception: Index 1 > = 1

    If I remove the "if (HomeScreen.supportsIcons ()) ' line and the line"else", all right:

    updateIcons
    The current theme is supported by the icons
    main icon updated
    Turning icon set
    End of updateIcons

    I ran the code snippet at the start of the application, on the application of another point of entry starts and the menu command, click on and the result was always the same.

    I created the application with BlackBerry Plugin for Eclipse Eclipse 3.4 (for BB OS4.7) v1.2, then I tried with BlackBerry Plugin for Eclipse v1.3 in Eclipse 3.6 (for BB OS6), but there was no difference in the behavior of HomeScreen.supportsIcons () on OS6.0 - he always threw a RuntimeException if the active theme had specified a theme animated for the bottom of the home screen.

    The exception is thrown when the background is an animated GIF (no matter how it has been set to loop - forever or just once), but never when it's a static image or a slideshow.

    So, I wonder if the supportsIcons check is really important and what would happen if the code is run on a device that uses a theme without icons (I have personally never met such person).

    And, of course, my big question is: is this a bug or I do something wrong?

    Thanks for the themes of the sample.  I was able to reproduce using them.  I reported this problem to our development team and it connected Issue Tracker here: https://www.blackberry.com/jira/browse/JAVAAPI-1796

  • Odd screens RuntimeException

    Using Eclipse, targeting devices and better 8330, OS 4.5 & better...

    import java.util.Vector;
    import net.rim.device.api.ui.UiApplication;
    
    public class ScreensApp extends UiApplication {
    
        public static Vector screenV;
    
        public ScreensApp() {
            screenV = new Vector();
            pushScreen( new Screens2() );
        }
        /**
         * @param args
         */
        public static void main(String[] args) {
            // TODO Auto-generated method stub
            ScreensApp app = new ScreensApp( );
            app.enterEventDispatcher(); //point of no return
        }
    
    }
    
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.container.MainScreen;
    
    public class Screens2 extends MainScreen {
    
            public Screens2() {
    
                if (ScreensApp.screenV.isEmpty()) {
                    try {
                        Dialog.alert("screenV is empty!");
                    } catch ( RuntimeException e) {
                        System.out.println(  e.toString() );
                    }
                }
    
                LabelField label = new LabelField( "screens2 label" );
                add( label );
    
            }
    }
    

    These two classes are the essence of a problem, in that I am running.  I'm developing a simple, single-threaded (no requirement of network) application. The dialog box throws a RuntimeException [1], and I don't know why.  As Screens2 is pushed in the screen of ScreensApp stack and not running in parallel with ScreensApp, I thought he had run on the thread of the event and I wouldn't need to use invokelater or syncronize to get alert dialog to display.  If it's wrong, can someone please explain why (and how) that became a multi-threaded application (or whatever else happens to cause the RuntimeException)? Thank you in advance!

    [1] the error is "java.lang.RuntimeException: pushModalScreen called by a thread of non-event."

    Your problem is that you are trying to instantiate a modal dialog (your alert dialog box) to the constructor of the class Screens2. At the time when this constructor is running, the application has not yet entered the event dispatcher.

    The app is not in the dispatcher of events up to this after the Screens2 object is instantiated.  Get rid of the Dialog.alert here in the constructor.

  • Timer task - throws RunTimeException

    In my application, I need to verify a method returning a Boolean value (this method connects to a Web using Httpconnection service method). I used the timer and TimerTask, but RuntimeException is thrown and the timer is automatically cancelled. I plan in the constructor like this

    timer =  new Timer();
    timer.schedule(new checkConnection(), 180000, 180000);
    

    In every 3 minutes, I get a message stating the return value of the web service method.

    private class checkConnection extends TimerTask
    {
        public checkConnection()
        {
        }
    
        public void run()
        {
           if(checkWebConnection(Login.strTechCode, Login.strTechPin))
          Status.show("Connection Exists");
           else Status.show("Connection Lost");
        }
    }
    

    After the delay, it shows JVM error 104 Eception: RuntimeException. I commented on the fi and other parts in the run method, but the exception remains the same. Why my program does not show even a message special intermittently?

    You should use invokelater autour UI calls, in your case status.show, only.

    networking of any kind must run on a separate thread.

    If checkWebConnection directly uses the networking, I suggest that surround you everything with a new Thread and use invokelater only around status.show parts.

  • Call APP_TYPE_CAMERA on 4.5 os RuntimeException

    try {
        Invoke.invokeApplication(Invoke.APP_TYPE_CAMERA, new CameraArguments());
    } catch (Exception e) {
        Dialog.inform("Could not start camera.");
    }
    

    Hello!

    Such a code, I try to start on 4.5 JDE (8700g Simulator).

    EI As RuntimeException exception with message: could not start...

    and Simulator not having a native camera.

    How will I know programmatically, on my device unsupported?

    (class Invoke supported since 4.0.0 and APP_TYPE_CAMERA since 4.2.0)

    Thanks in advance

    Use the DeviceInfo.hasCamera () method

  • RunTimeException when you use the timer and TimerTask.

    In the switchNext() method, it changes an image and some text in a Vertical management. When I run the application, I get a RunTimeException. However, when I have not used the timer and tested the method switchNext() with just a button method worked perfectly. How can I make it work with timer or another class that he will call every 30 seconds?

     time = new Timer();
    TimerTask task = new TimerTask()
    {
    
    public void run()
    {
    
        switchNext();
    }
    };
    time.schedule(task, 10000);
    

    It would be useful to know what Exception you actually get.

    However, I think that it is indeed related to the fact IllegalStateException the TimerTask is running in the "bottom", and you try to update your User Interface.

    If you change the code as follows, it will work the method on the event Thread and so he has access to update the user interface.

    public void run()
    {
    UiApplication.getUiApplicat () .invokeLater (new Runnable()

    public void run() {}
    switchNext();

    }});
    }

    You can find more information on the event thread here:

    http://supportforums.BlackBerry.com/T5/Java-development/what-is-the-event-thread/Ta-p/446865

  • java.lang.RuntimeException called by the event no thread

    Hi all

    Please help me.

    I download my application Suiloidi OTA. When I have my application rum, it throws an error "untrapped Exception: java.lang.RuntimeException called by the event no thread", please let me know if anyone with no work around for this problem.

    I'm really in trouble.

    Ashutosh

    Thank you

    I got a d solution.

    Your steps were correct.

  • Exception in thread "main" java.lang.RuntimeException: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver


    Dear Sir


    I have this problem to connect the JAVA oracle database. I use Eclipse March, here is my code:

    package db;

    import java.sql.Connection;

    to import java.sql.DriverManager;

    import java.sql.SQLException;

    public class {ConnectionFactory

    public static {connection getConnection()

    try {}

    Class.forName ("oracle.jdbc.OracleDriver");

    return DriverManager.getConnection ("jdbc:oracle:thin:@myhost:1521:orcl", "scott", "Tiger");

    } catch (ClassNotFoundException |) SQLException e) {}

    throw new RuntimeException (e);

    }

    }

    Public Shared Sub main (String [] args) {}

    Connection connection = ConnectionFactory.getConnection ();

    System.out.println ("Conexao criada com sucesso.");

    try {}

    Connection.Close;

    } catch (SQLException e) {}

    e.printStackTrace ();

    }

    }

    }

    Belown the error:

    Exception in thread "main" java.lang.RuntimeException: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver

    DB. ConnectionFactory.getConnection (ConnectionFactory.java:14)

    DB. ConnectionFactory.main (ConnectionFactory.java:19)

    Caused by: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver

    at java.net.URLClassLoader.findClass (unknown Source)

    at java.lang.ClassLoader.loadClass (unknown Source)

    to Sun.misc.Launcher$appclassloader$ AppClassLoader.loadClass (unknown Source)

    at java.lang.ClassLoader.loadClass (unknown Source)

    at java.lang.Class.forName0 (Native Method)

    at java.lang.Class.forName (unknown Source)

    DB. ConnectionFactory.getConnection (ConnectionFactory.java:11)

    ... 1 more

    Someone help me, please?

    Thank you

    Jurandyr F. Alves

    A ClassNotFound exception means just what it says: it can't find this class.

    Make sure that the ojdbc7.jar file is in your classpath.

  • java.lang.RuntimeException: (old) no valid parent name

    Hello

    We are using version 11.1.1.3 to Hyperion and update hierarchical planning application another application by ODI Essbase Essbase.

    By updating the size of the Segment, I get the error message below.

    Segment, store, +, +, +, could not load the dimension member, error message is: java.lang.RuntimeException: (old) no valid parent name

    S_Con, S_Cons, idiots, jerks, assholes, never share, +, +, +, could not load the dimension member, error message is: com.hyperion.planning.HspRuntimeException: an alias with the disadvantages of the name already exists.

    Where I could see the metadata files to segment extracted in application of ODI ODI. Please could you help me solve the problem.

    Thank you

    Michel K

    If you try to rename members in planning, as far as I have conscience rename members cannot be done with ODI or the contour load utility, it can be done manually or through SQL.

    See you soon

    John

  • java.lang.RuntimeException: rdbmsName not known: SQL Server 2012-> report

    Hello

    I have ODM 4.1.1.888 and export an outline report and gives me the following error:

    2015-07-27 10:42:57, 010 [main] INFO ApplicationView - Data Modeler Oracle SQL Developer 4.1.1.888

    2015-07-27 10:47:45, 468 [Thread-53] ERROR ReportsHandler - Error exporting to the schema declaration:

    java.lang.RuntimeException: rdbmsName not known: SQL Server 2012

    at oracle.dbtools.crest.model.design.LogicalDatatype.createDataType(LogicalDatatype.java:83)

    at oracle.dbtools.crest.exports.reports.RSLogicalTypes.export(RSLogicalTypes.java:69)

    at oracle.dbtools.crest.exports.reports.ReportsHandler.export(ReportsHandler.java:112)

    to oracle.dbtools.crest.swingui.ControllerApplication$ ExportToReportsSchema$ 1.run(ControllerApplication.java:2085)

    2015-07-27 10:53:02, 162 [Thread-66] ERROR ReportsHandler - Error exporting to the schema declaration:

    java.lang.RuntimeException: rdbmsName not known: SQL Server 2012

    at oracle.dbtools.crest.model.design.LogicalDatatype.createDataType(LogicalDatatype.java:83)

    at oracle.dbtools.crest.exports.reports.RSLogicalTypes.export(RSLogicalTypes.java:69)

    at oracle.dbtools.crest.exports.reports.ReportsHandler.export(ReportsHandler.java:112)

    to oracle.dbtools.crest.swingui.ControllerApplication$ ExportToReportsSchema$ 1.run(ControllerApplication.java:2085)

    2015-07-27 10:54:41, 768 [Thread-68] ERROR ReportsHandler - Error exporting to the schema declaration:

    java.lang.RuntimeException: rdbmsName not known: SQL Server 2012

    at oracle.dbtools.crest.model.design.LogicalDatatype.createDataType(LogicalDatatype.java:83)

    at oracle.dbtools.crest.exports.reports.RSLogicalTypes.export(RSLogicalTypes.java:69)

    at oracle.dbtools.crest.exports.reports.ReportsHandler.export(ReportsHandler.java:112)

    to oracle.dbtools.crest.swingui.ControllerApplication$ ExportToReportsSchema$ 1.run(ControllerApplication.java:2085)

    Is a bug?

    Thank you

    Your structured Types and the Types of Collection are part of your model, so I expect not to be affected by copying types.xml.

    David

  • Impossible to deploy Composite EM. java.lang.RuntimeException: could not compile BPEL execlets

    Hi all

    I tried to solve this problem, I am facing currently, but have failed so far. I am trying to use a jar file imported into my incorporation of java activity, but whenever I try to deploy the composite on EM I get the following error:

    Suitcase BPEL deployment by mistake.

    "error during the attempt to deploy the BPEL component file" / / app/oracle/middleware/domains*/ * / servers /*/dc/soa_759f9834-e1f3-438f-9a9c-d69a269c6568 "; the reported exception is: java.lang.RuntimeException: failed to bring the execlets of BPELProcess1

    I followed this guide Oracle SOA: how to call a Java method inside a BPEL process using the Java activity on how to import a jar file and use it.

    Already added in the libraries/classpath and added in the SCA-INF/lib folder. I use JDeveloper 11 g

    I also tried to place the JAR file in the soa_ext_11.1.1 folder and capabilities using ANT typical random on SOA: adding the jars/classes customized to Weblogic server-how it works

    I use BPEL2.0

    Here's my import declarations:

      <import location="java.io.*" importType="http://schemas.oracle.com/bpel/extension/java"/>
      <import location="java.util.*" importType="http://schemas.oracle.com/bpel/extension/java"/>
      <import location="java.net.*" importType="http://schemas.oracle.com/bpel/extension/java"/>
      <import location="test.HelloWorldJava" importType="http://schemas.oracle.com/bpel/extension/java"/>
      <import location="oracle.soa.common.util.Base64Encoder" importType="http://schemas.oracle.com/bpel/extension/java"/>
    
    

    Here is the java class that is in the JAR file that I try to use the integration of Java:

    package test;
    
    
    public class HelloWorld {
        public HelloWorld() {
        }
    
    
        public static void main(String[] args) {
            HelloWorld helloWorld = new HelloWorld();
            System.out.println(helloWorld.getGreetings("aaAAaa"));
        }
       
        public String getGreetings(String name) {
            return ("ehhhhhh" + name);
        }
    }
    
    

    This is the java code used in the integration of Java:

    HelloWorld hello = new HelloWorld(); 
    String greetings = hello.getGreetings("Yatan"); 
    
    setVariableData("greetings",greetings);
    
    

    Am I missing something else? And installation of weblogic does matter? Because I'm using a cluster implemented. Any help would be greatly appreciated. Thank you!

    Yes, your import statement was a stupid mistake. Your HelloWorld class but you are importing a class called HelloWorldJava? It's something irrational to me.

    Import your HelloWorld class and other classes are not necessary to import.

  • EJB RuntimeException - code Uncompilable source (JPA EA 5)

    Hi all

    I just came across this error message when you run a Java EE 5 APP EmployeeService application but do not understand why this happens:

    HTTP status 500-
    Type Exception report
    Description: The server encountered an internal eror() that prevents to meet this demand
    Exception: javax.ejb.EJBException.
    The complete exception stack traces and its root causes are available in newspapers of Sun GlassFish Enterprise Server v2.1:
    * EJB5018: An exception was thrown during a call ejb on [EmployeeServiceBean] *.
    javax.ejb.EJBException

    to $Proxy34.addEmployeeProject (Unknown Source)
    at examples.servlet.EmployeeServlet.doPost(EmployeeServlet.java:51)

    Caused by: java.lang.RuntimeException: code Uncompilable source
    at examples.model.Project.addEmployee(Project.java:49)
    at examples.stateless.EmployeeServiceBean.addEmployeeProject(EmployeeServiceBean.java:31)
    Excerpts from the code of both the entity and session beans:

    @Entity 13
    14/public class project implements Serializable {}
    @Id 15 @GeneratedValue (strategy = GenerationType.IDENTITY)
    ID of 16 int protected;
    17 protected String name;
    18 @ManyToMany (mappedBy = "projects")
    19 employees of Collection < employee > private;
    20
    21 public Project() {}
    22 employees = new ArrayList < employee > ();
    23}
    24
    25 public int getId() {}
    26 return id;
    27}
    28
    29 public void setId (int projectNo) {}
    30 this.id = projectNo;
    31}
    32
    33 public String getName() {}
    34 return name;
    35}
    36
    37 public void setName (String projectName) {}
    38 myIdName = projectName;
    39}
    40
    41 public Collection < employee > getEmployees() {}
    42 employees back;
    43}
    44
    {45 public Sub addEmployee (employee)
    46 if (! getEmployees () .contains (employee)) {}
    47 getEmployees () .add (employee);
    48}
    49 if (! employee.getProjects () .contains (this)) {}
    50 employee.getProjects () .add (this);
    51}
    52}
    53
    54 public String toString() {}
    55 return "project id:" + getId() + ", name:" "+ getName() +".
    56"with" getEmployees () () .size + "employees";
    57}
    58}

    @Entity 15
    16 public class Employee implements Serializable {}
    @Id 17 @GeneratedValue (strategy = GenerationType.IDENTITY)
    18 private int id;
    19 private String name;
    20 long treatment private;
    21
    22 @ManyToMany
    @JoinTable 23 (name = "EMP_PROJ",
    joinColumns=@JoinColumn (name = "EMP_ID") 24,
    25 inverseJoinColumns=@JoinColumn (name = "PROJ_ID"))
    26 projects private Collection < Project >;
    27
    28
    29 public Employee() {}
    30 projects = new ArrayList < Project > ();
    31}
    32
    33 public int getId() {}
    34 return id;
    35}
    36
    37 public void setId (int id) {}
    38 this.id = id;
    39}
    40
    41 public String getName() {}
    42 return name;
    43}
    44
    45 public void setName (String name) {}
    46 myIdName = name;
    47}
    48
    49 getSalary() long public {}
    50 return salary;
    51}
    52
    53 public void setSalary (long salary) {}
    54 this.salary = salary;
    55}
    56
    {57 public Sub addProject (project)
    58 if (! getProjects () .contains (project)) {}
    59 getProjects () .add (project);
    60}
    61 if (! project.getEmployees () .contains (this)) {}
    62 project.getEmployees () .add (this);
    63}
    64}
    65
    66 public Collection < Project > getProjects()}
    67 projects of return;
    68.}
    943
    75

    @Stateless 13
    14/public class EmployeeServiceBean implements {EmployeeService
    15 @PersistenceContext (unitName = "EmployeeService")
    16 protected EntityManager em;
    17
    18 public employee createEmployee (String name, long salary) {}
    19 employee emp = new Employee();
    20 emp.setName (name);
    21 emp.setSalary (salary);
    22 em.persist (emp);
    23
    24 return emp;
    25}
    26
    @Override 27
    28 public employee addEmployeeProject (int empId, int PROJID) {}
    29 employees emp = em.find (Employee.class, empId);
    30 Project proj = em.find (Project.class, PROJID);
    31 proj.addEmployee (emp);
    32 return emp;
    33}
    34
    @Override 35
    36 public Collection < employee > findAllEmployees() {}
    37 query query = em.createQuery ("SELECT employee e");
    38 (Collection < employee >) return query.getResultList ();
    39}
    40}

    Could someone explain why this exception takes place and that it could be made to resolve the issue? I am re - create a Pro JPA 2 exercise (works very well with Ant) with Netbeans 6.9.1, JDK 1.6.0_23 on Windows 7 platform.

    Your advice would be greatly appreciated.

    Thank you very much

    Jack

    Ah, Netbeans. Use ecli...

    I want to say is you peut run in a Netbeans cache bug http://netbeans.org/bugzilla/show_bug.cgi?id=169562 that you should not be since the patch was tagerted to 6.8.
    Try to clear the cache on Clean & Build and see if that is the question.

  • dsconf UH - Details: java.lang.RuntimeException: could not generate secret

    Hello

    Recently installed ODSEE7 and trying to update some settings, I get the following


    bash-3. 00 #. / dsconf set-server-prop - p 389 - D cn = eye - to ArcelorMittal through-limit: unlimited
    Impossible to link firmly on ' localhost: 389.
    "localhost: 389" and "dsconf" could not negotiate the desired level of security.
    Details: java.lang.RuntimeException: could not generate secret
    The 'whole-server-prop' operation failed on ' localhost: 389.


    Any ideas on how I go around to solve this.

    Steve

    Try with the-e option

  • My first page running, I get "java.lang.RuntimeException: could not find FacesC.

    I created my template with BC.
    I created my first simple page with ADF Faces and a data table control.
    When I run in JDev (11.1.1.0.2) I get
    Error 500
    "java.lang.RuntimeException: cannot find FacesContext.
    What's wrong?
    What did I miss?
    TKS
    Tullio

    Hi Tullio,

    If the problem is resolved please mark question as answered/correct/useful to other help research

    Kind regards

    Branislav

  • java.lang.RuntimeException: cannot find FacesContext

    Hello

    Was googeling, that for a long time and the answer is always on the bad url-models

    Here is my web.xml file:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
        <description>Empty web.xml file for Web Application</description>
        <context-param>
            <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
            <param-value>client</param-value>
        </context-param>
        <filter>
            <filter-name>JpsFilter</filter-name>
            <filter-class>oracle.security.jps.ee.http.JpsFilter</filter-class>
        </filter>
        <filter>
            <filter-name>trinidad</filter-name>
            <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
        </filter>
        <filter>
            <filter-name>adfBindings</filter-name>
            <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
        </filter>
        <filter-mapping>
            <filter-name>JpsFilter</filter-name>
            <servlet-name>Faces Servlet</servlet-name>
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>REQUEST</dispatcher>
            <dispatcher>INCLUDE</dispatcher>
        </filter-mapping>
        <filter-mapping>
            <filter-name>trinidad</filter-name>
            <servlet-name>Faces Servlet</servlet-name>
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>REQUEST</dispatcher>
        </filter-mapping>
        <filter-mapping>
            <filter-name>adfBindings</filter-name>
            <servlet-name>Faces Servlet</servlet-name>
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>REQUEST</dispatcher>
        </filter-mapping>
        <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>/faces/*</url-pattern>
        </servlet-mapping>
        <session-config>
            <session-timeout>35</session-timeout>
        </session-config>
        <mime-mapping>
            <extension>html</extension>
            <mime-type>text/html</mime-type>
        </mime-mapping>
        <mime-mapping>
            <extension>txt</extension>
            <mime-type>text/plain</mime-type>
        </mime-mapping>
        <ejb-local-ref>
            <ejb-ref-name>ejb/local/SessionEJB</ejb-ref-name>
            <ejb-ref-type>Session</ejb-ref-type>
            <local>test.model.SessionEJBLocal</local>
            <ejb-link>SessionEJB</ejb-link>
        </ejb-local-ref>
    </web-app>
    java.lang.RuntimeException: cannot find FacesContext
    at javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1851)
    at javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1668)
    at jsp_servlet.__main_jspx._jspx___tag0(__main_jspx.java:135)
    at jsp_servlet.__main_jspx._jspService(__main_jspx.java:108)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)

    Is the problem elsewhere?
    Thank you.

    Andrefs,

    Try http://127.0.0.1:7101/faces/Test-View-context-root/Main.jspx (or http://127.0.0.1:7101/Test-View-context-root/faces/Main.jspx, can't remember at the moment).

    J

Maybe you are looking for