Bean Classpath

How to set classpath of Java Bean when using it with JSP?
Please Help

Hi harshad,
I don't think in tomcat we need to set a path for JSP to run java beans
we keep it in WEB-INF/classes/
your files tht is class files will reside there.
And they are accesible.
Bye

Similar Messages

  • JSP/beans classpath problems

    I'm runnning Tomcat 3.3 on Solaris 8. I'm writing a JSP application which uses a JavaBean that I wrote. The beans class name is testbeans.CalendarBean. I'm getting ClassNotFoundExceptions when I try to import the bean. My JSP is located at TOMCAT_HOME/webapps/test/jsp/
    My bean is located at TOMCAT_HOME/webapps/test/WEB-INF/classes/testbeans/
    I made sure to put the proper include statement in my jsp file as well. Finally, I put my bean in TOMCAT_HOME/lib/ and modified the CLASSPATH variable in tomcat.sh. This worked, but what do I have to do so I can leave the bean in its original location? Thanks.
    John

    Add the following to your JSP file:
    <%@ page
    import = "testbeans.*"
    %>
    Then you can do this:
    <% testbeans.CalendarBean myCB = new CalendarBean();%>
    also, CalendarBean needs a package statement like:
    package testbeans;

  • How to get the value of sessionbean's properties in JSP?

    Hi,All
    I want to invoke setInterval() in JSP,and invoke clearInterval() when sessionbean's property is not null.But I don't know how to get the sessionbean's property.
    Thanks
    Smile.

    I'm not sure you can directly access a session bean from JSP.
    Although I haven't tried this with sessionBean1, you might try using JSP's useBean tag.
        <jsp:useBean id=<localName> type=<classPath> scope=<scope> />localName is the name you want to use to refer to the bean. classPath is the fully qualified class path. scope is either page, request, session, or application.
    I use this approach for accessing Java Beans. But before you can use the bean you have to add it as a session attribute. This makes it accessible to the page.
        FacesContext facesContext = FacesContext.getCurrentInstance();
        ExternalContext externalContext = facesContext.getExternalContext();
        HttpSession session = (HttpSession)externalContext.getSession(false);
        session.setAttribute(<attributeName>, <attributeValue>);You can then access the bean. I use scriptlets although you could also use JSP expressions or EL. I use scriptlets because I'm more comfortable with it.
    <jsp:scriptlet>
        Address address = (Address)session.getAttribute("Address");
        if(address != null) {
            value = address.getAddress1();
            if(value != null) {
                out.println(value);
            value = address.getAddress2();
            if(value != null) {
                out.println(" " + value);
    </jsp:scriptlet>I use this approach for accessing Java Beans. But before you can use it you have to add it as a session attribute.
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExternalContext externalContext = facesContext.getExternalContext();
    HttpSession session = (HttpSession)externalContext.getSession(false);
    session.setAttribute(<attributeName>, <attributeValue>);

  • I'm new to JasperReport. I can't compile this kind of report

    Hi, all
    I'm trying to create a report using Jasper Report. I already add the needed files into net bean classpath. And the compile task is successful. However when I run it, i meet the following message. And my app stucks there.
    net.sf.jasperreports.engine.JRException: Error compiling report java source files : C:\HuongLT\Misc\JavaApplication2\HelloReportWorld_1167289263828_654764.java
    at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClasses(JRJavacCompiler.java:93)
    at net.sf.jasperreports.engine.design.JRAbstractClassCompiler.compileUnits(JRAbstractClassCompiler.java:67)
    at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:190)
    at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:105)
    at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:211)
    at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:144)
    at javaapplication2.Main.main(Main.java:44)
    Caused by: java.io.IOException: CreateProcess: javac -classpath "C:\Documents and Settings\Administrator\Desktop\jasperreports-1.2.8.jar;C:\Documents and Settings\Administrator\Desktop\commons-digester-1.8.jar;C:\Documents and Settings\Administrator\Desktop\commons-collections-3.2.jar;C:\Documents and Settings\Administrator\Desktop\commons-logging-1.1.jar;C:\Documents and Settings\Administrator\Desktop\commons-beanutils.jar;C:\HuongLT\Misc\JavaApplication2\build\classes" C:\HuongLT\Misc\JavaApplication2\HelloReportWorld_1167289263828_654764.java error=2
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
    at java.lang.ProcessImpl.start(ProcessImpl.java:30)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
    at java.lang.Runtime.exec(Runtime.java:591)
    at java.lang.Runtime.exec(Runtime.java:464)
    at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClasses(JRJavacCompiler.java:62)
    ... 6 more
    Please help me.
    I appreciate very much for your help

    See Here...
    iCloud Backup and Restore Overview
    http://support.apple.com/kb/HT4859?viewlocale=en_US
    And Here...
    iCloud Help
    http://help.apple.com/icloud/?lang=en

  • JDeveloper, ADF, Quartz: Quartz Using different Classpath than Backing bean

    Hi,
    I have an ADF 10g application. When i get an Application module using Configuration.createRootApplicationModule, it works fine in normal java class or backing bean.
    Now i have an quartz configured in this project. The same code does not work in Quartz Job class.
    When i print the classpath using System.getProperty("java.class.path") in normal java class or backing bean, then it considers everything along with BC4J jar files. But when i print the same thing in quartz job, it has only two jar files inside its class path: C:\JDeveloper\j2ee\home\oc4j.jar;C:\JDeveloper\jdev\lib\jdev-oc4j-embedded.jar.
    Can anyone let me know what could be the issue if someone has configured Quartz with JDeveloper and ADF application.
    --Chintan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi!
    Have you solved this problem? If yes, can you share the solution.
    Regrads,
    Sašo

  • How to setup classpath for the beans?

    My packaged beans reference classes in other jars. Right now I have to set up the classpath in the Windows user variables. I think that is not a good way.
    Is there a better way to do it? Thanks.
    Anthony

    Matthew,
    Thanks for the advice. Unfortunately the way you sugguested will not work for me because the beans bridge stuff is just a small piece of the system that I will deploy. And I can't ask all the needed jars put into the Java plug-in's directory.
    I know there is another way to setup the classpath just for the plug-in's. It is by using the Java Plug-in's console. But this looks work only in a development environment. I don't know how I can automate it as part of a product installation process.
    I will deploy an enterpise applicaiton. So far I haven't found a better way to set the classpath than setting the environment variables (which is kind of rude).
    Anthony

  • HOw to include remote and home beans in to the classpath

    Hi friends,
    I developed stateless session bean is Wsad, and want to compile and run the program from MS-Dos prompt and test it. If I need to add javax.ejb, beans home and remote classes in the classpath, how can I set them in the classpath. Please help me.
    Thanks,
    Bhargavi

    I developed stateless session bean is Wsad, and want
    to compile and run the program from MS-Dos prompt and
    test it. If I need to add javax.ejb, beans home and
    remote classes in the classpath, how can I set them
    in the classpath. Please help me.Add the j2ee.jar in WSAD in the classpath. Here's a tutorial on how to set classpath... http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html

  • My first bean not working... is it classpath?

    I am doing my first Javabean ever and it is a very basic one. I have uploaded the bean to a server but it is not running. I am pretty sure that the code is right. My guess is something about classpath but I am not sure. Please read this and let me know if I making a bean in right way???
    1- In the first line in my java file (myBean.java) I write package user;
    2- I put myBean.java in C:\Program Files\Java\jdk1.6.0_11\bin
    3- From the console I run javac myBean.java and get BeanClass.class
    4- I upload myBean.class to the server in directory WEB-INF\classes (I have already asked the web hotel and it should be there)
    5- I run the file and get a org.apache.jasper.JasperException
    Am I compiling in the right place in the right way??? Is it something with the classpath???
    Thanks!!!

    I am going to be straight and to the point with you. I would take a step back and start at the basics again because you seem horribly confused about several things, one of which is the basics of the basics (how to compile java classes).
    You shouldn't even be thinking about web development before you have a firm grasp on Java itself. Have you gone through the introductory tutorial?
    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html
    That should at least explain to you how to use the tools properly. When you have a little knowledge of how Java ticks and you can write command line programs with it, I would first study how java web applications work. Read about servlets and JSPs and how to deploy a web application properly.

  • Please help me to run this CMP BEAN, I need help urgently, I am running out of time :(

    Hi,
    I am facing this problem, Please help me, I am attaching the source files
    also along with the mail. This is a small CMP EJB application, I am using
    IAS SP2 on NT server with Oracle 8. I highly appreciate if someone can send
    me the working copy of the same. I need these urgent. I am porting all my
    beans from bea weblogic to Iplanet. Please help me dudes.
    Err.........
    [06/Sep/2001 13:41:29:7] error: EBFP-marshal_internal: internal exception
    caught
    in kcp skeleton, exception = java.lang.NoSuchMethodError
    [06/Sep/2001 13:41:29:7] error: Exception Stack Trace:
    java.lang.NoSuchMethodError
    at
    com.se.sales.customer.ejb_kcp_skel_CompanyHome.create__com_se_sales_c
    ustomer_Company__java_lang_Integer__indir_wstr__215617959(ejb_kcp_skel_Compa
    nyHo
    me.java:205)
    at com.kivasoft.ebfp.FPRequest.invokenative(Native Method)
    at com.kivasoft.ebfp.FPRequest.invoke(Unknown Source)
    at
    com.se.sales.customer.ejb_kcp_stub_CompanyHome.create(ejb_kcp_stub_Co
    mpanyHome.java:297)
    at
    com.se.sales.customer.ejb_stub_CompanyHome.create(ejb_stub_CompanyHom
    e.java:89)
    at
    com.se.sales.customer.CompanyServlet.doGet(CompanyServlet.java:35)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
    wn Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)
    Caught an exception.
    java.rmi.RemoteException: SystemException: exid=UNKNOWN
    at com.kivasoft.eb.EBExceptionUtility.idToSystem(Unknown Source)
    at com.kivasoft.ebfp.FPUtility.replyToException(Unknown Source)
    at
    com.se.sales.customer.ejb_kcp_stub_CompanyHome.create(ejb_kcp_stub_Co
    mpanyHome.java:324)
    at
    com.se.sales.customer.ejb_stub_CompanyHome.create(ejb_stub_CompanyHom
    e.java:89)
    at
    com.se.sales.customer.CompanyServlet.doGet(CompanyServlet.java:35)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
    wn Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)
    Thanks in advance
    Shravan
    [Attachment iplanet_app.jar, see below]
    [Attachment iplanet_src.jar, see below]

    One reason that I sometimes get 'NoSuchMethodError' is when I make a change to a
    java class that is imported into another java class. When I go to run the
    importing class, it will throw a 'NoSuchMethodError' on any methods that I've
    changed in the imported class. The solution is to recompile the importing class
    with the changed classes in the classpath.
    shravan wrote:
    Hi,
    I am facing this problem, Please help me, I am attaching the source files
    also along with the mail. This is a small CMP EJB application, I am using
    IAS SP2 on NT server with Oracle 8. I highly appreciate if someone can send
    me the working copy of the same. I need these urgent. I am porting all my
    beans from bea weblogic to Iplanet. Please help me dudes.
    Err.........
    [06/Sep/2001 13:41:29:7] error: EBFP-marshal_internal: internal exception
    caught
    in kcp skeleton, exception = java.lang.NoSuchMethodError
    [06/Sep/2001 13:41:29:7] error: Exception Stack Trace:
    java.lang.NoSuchMethodError
    at
    com.se.sales.customer.ejb_kcp_skel_CompanyHome.create__com_se_sales_c
    ustomer_Company__java_lang_Integer__indir_wstr__215617959(ejb_kcp_skel_Compa
    nyHo
    me.java:205)
    at com.kivasoft.ebfp.FPRequest.invokenative(Native Method)
    at com.kivasoft.ebfp.FPRequest.invoke(Unknown Source)
    at
    com.se.sales.customer.ejb_kcp_stub_CompanyHome.create(ejb_kcp_stub_Co
    mpanyHome.java:297)
    at
    com.se.sales.customer.ejb_stub_CompanyHome.create(ejb_stub_CompanyHom
    e.java:89)
    at
    com.se.sales.customer.CompanyServlet.doGet(CompanyServlet.java:35)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
    wn Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)
    Caught an exception.
    java.rmi.RemoteException: SystemException: exid=UNKNOWN
    at com.kivasoft.eb.EBExceptionUtility.idToSystem(Unknown Source)
    at com.kivasoft.ebfp.FPUtility.replyToException(Unknown Source)
    at
    com.se.sales.customer.ejb_kcp_stub_CompanyHome.create(ejb_kcp_stub_Co
    mpanyHome.java:324)
    at
    com.se.sales.customer.ejb_stub_CompanyHome.create(ejb_stub_CompanyHom
    e.java:89)
    at
    com.se.sales.customer.CompanyServlet.doGet(CompanyServlet.java:35)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
    wn Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)
    Thanks in advance
    Shravan
    Name: iplanet_app.jar
    iplanet_app.jar Type: Java Archive (application/java-archive)
    Encoding: x-uuencode
    Name: iplanet_src.jar
    iplanet_src.jar Type: Java Archive (application/java-archive)
    Encoding: x-uuencode

  • Unable to find oracle.dss.thin.beans.graph.ThinGraph package.

    Hi,
    How do i find this package. I am using JDEVELOPER 1.3 and i am able to generate graphs using the xml model method. What i want is to be able to generate the graph directly using a SQL without an XML.
    I want to use BI graph and generate graphs. SQL will be provided by me at runtime in the JSP and data returned by sql will be used by graph for plotting. How do i do this?
    http://oraclebi.blogspot.com/2005/11/using-bi-beans-with-non-olap-data.html
    i am using the above link as reference but was unable to locate or install the package where do i find it and how do i proceed..
    Please help
    Arjun Surendra

    Make sure that you have moved Oracle BI Graph to the right hand "selected Libraries" side.
    Also when you are under Profiles -> Development -> Libraries -> Oracle BI Graph. select Oracle BI graph & click on edit.
    under classpath you should see the associated jar files.
    Eg: C:\JDeveloper\jlib\bigraphbean.jar;C:\JDeveloper\jlib\bigraphbean-nls.zip
    Good luck!
    Kavitha

  • JB-3300-cfgration file-demo/common/bc4j.xcfg is not found in the classpath.

    Frnds,
    Doing login application using ADF thru viewobjects and entity objects.Created login page with fileds and backing bean fetching values entered by user, in the same bean trying to get data(from database)thru viewobject ......iam getting this error
    javax.faces.el.EvaluationException: oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.ConfigException, msg=JBO-33001: Configuration file /demo/common/bc4j.xcfg is not found in the classpath.
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
    Caused by: oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.ConfigException, msg=JBO-33001: Configuration file /demo/common/bc4j.xcfg is not found in the classpath.
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:529)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1505)
         at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1482)
    code used in bean is:
    ApplicationModule appmod = Configuration.createRootApplicationModule("demo.model","LAppModule");
    ViewObject vo= appmod.findViewObject("ViewObj1");
    pls help me.
    Thanks and Regards,
    Ashok B.

    **LogBeanPage.java**
    package project1;
    import oracle.adf.model.BindingContext;
    import oracle.adf.view.rich.component.rich.RichDocument;
    import oracle.adf.view.rich.component.rich.RichForm;
    import oracle.adf.view.rich.component.rich.input.RichInputText;
    import oracle.adf.view.rich.component.rich.layout.RichPanelFormLayout;
    import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
    import oracle.adf.view.rich.component.rich.output.RichMessages;
    import oracle.binding.BindingContainer;
    import oracle.binding.OperationBinding;
    public class LoginPage {
    private RichCommandButton cb1;
    private RichInputText it1;
    private RichInputText it2;
    private RichPanelFormLayout pfl1;
    private RichForm f1;
    private RichMessages m1;
    private RichDocument d1;
    public LoginPage() {
    public void setCb1(RichCommandButton cb1) {
    this.cb1 = cb1;
    public RichCommandButton getCb1() {
    return cb1;
    public void setIt1(RichInputText it1) {
    this.it1 = it1;
    public RichInputText getIt1() {
    return it1;
    public void setIt2(RichInputText it2) {
    this.it2 = it2;
    public RichInputText getIt2() {
    return it2;
    public void setPfl1(RichPanelFormLayout pfl1) {
    this.pfl1 = pfl1;
    public RichPanelFormLayout getPfl1() {
    return pfl1;
    public void setF1(RichForm f1) {
    this.f1 = f1;
    public RichForm getF1() {
    return f1;
    public void setM1(RichMessages m1) {
    this.m1 = m1;
    public RichMessages getM1() {
    return m1;
    public void setD1(RichDocument d1) {
    this.d1 = d1;
    public RichDocument getD1() {
    return d1;
    public String cb1_action()
    String returnStr="error";
    System.out.println("Inside loginBtn_action");
    BindingContainer bindings=getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("checkLoginCredentails");
    Object result = operationBinding.execute();
    System.out.println(result);
    if (operationBinding.getErrors().isEmpty())
    returnStr= "success";
    System.out.println("returnStr= " + returnStr);
    return returnStr;
    private BindingContainer getBindings()
    return BindingContext.getCurrent().getCurrentBindingsEntry();
    }

  • My simple bean will not work! Help!

    I created a java bean based on a tutorial. After a little bit of trouble with the classpath, getting files in the right place, etc, I finally got it working. Whoo hoo!
    Now, I'm working on a second java bean and I cannot get it to work. I'm at the point where I've stripped it down so it's basically identical to the tuturial with just a few changes. When it runs I get a NoSuchMethodError. I've checked, rechecked and re-rechecked my case and my names many many many times. I've rebooted. I've restarted Tomcat and my browser multiple times. What am I missing?
    This is my Test.html:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>EME</title>
    </head>
    <body>
    <form method=post action="Test.jsp">
    What's your name? <input type=text name=username size=20><br>
    <table>
    <tr><td>
         <select name=LookupType>
         <option>Last Name
         <option>Phone</select></td>
    <td>
         <input type=text></td>
    <td><input type=submit value=Search></td></tr></table>
         HHNum: <input type=text name=hhnum size=20><br>
    </table>
    </form>
    </body>
    </html>This is my Test.jsp:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <jsp:useBean id="user" class="user.UserData" scope="session"/>
    <jsp:setProperty name="user" property="*"/>
    <jsp:useBean id="webPageData" class="com.penntraffic.emeApp.WebPageData" scope="session"/>
    <jsp:setProperty name="webPageData" property="*"/>
    <html>
    <head>
    <title>EME</title>
    </head>
    <body>
    <%= user.getUsername() %>
    <%= webPageData.getHhnum() %>
    <table>
    <tr><td>
         <select name=LookupType>
         <option>Last Name
         <option>Phone</select></td>
    <td>
         <input name=hhnum type=text></td>
    <td><input type=submit value=Search></td></tr></table>
         <br>
    </table>
    </body>
    </html>This is my java bean code:
    package com.penntraffic.emeApp;
    public class WebPageData {
         String hhnum;
         public void setHhnum(String value){
              hhnum = value;
         public String getHhnum() {
              return hhnum;
    package user;
    public class UserData {
         String username;
         String email;
         int age;
         public void setUsername(String value)
              username = value;
         public void setEmail(String value)
              email = value;
         public void setAge(int value)
              age = value;
         public String getUsername()
              return username;
         public String getEmail()
              return email;
         public int getAge()
              return age;
    }The UserData.class file is in C:\apache-tomcat-6.0.10\webapps\EME\WEB-INF\classes\user
    The WebPageData.class file is in C:\apache-tomcat-6.0.10\webapps\EME\WEB-INF\classes\com\penntraffic\emeApp
    Both paths are included in my CLASSPATH environment variable.
    This is the error text that I get when I click on the 'Search' button in Test.html (submit button):
    type Exception report
    message The server encountered an internal error () that prevented it from fulfilling this request.
    org.apache.jasper.JasperException: An exception occurred processing JSP page /Test.jsp at line 12
    9: </head>
    10: <body>
    11: <%= user.getUsername() %>
    12: <%= webPageData.getHhnum() %>
    13: <table>
    14: <tr><td>
    15:           <select name=LookupType>
    Stacktrace:
              org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:515)
              org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:408)
              org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
              org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
              javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    javax.servlet.ServletException: java.lang.NoSuchMethodError: com.penntraffic.emeApp.WebPageData.getHhnum()Ljava/lang/String;
              org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:855)
              org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:784)
              org.apache.jsp.Test_jsp._jspService(Test_jsp.java:111)
              org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
              org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
              org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
              org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
              javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    java.lang.NoSuchMethodError: com.penntraffic.emeApp.WebPageData.getHhnum()Ljava/lang/String;
              org.apache.jsp.Test_jsp._jspService(Test_jsp.java:87)
              org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
              org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
              org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
              org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
              javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    If I remove the line that attempts to get the value of hhnum from the bean, everything works fine and I get the username value from the first bean. So the user bean is working, but there's obviously something wrong with my second bean (webPageData).
    I've also tried using <jsp:getProperty name="webPageData" property="hhnum"/> rather than <%= webPageData.getHhnum() %>. I thought they would return identical results, but instead I get the below errors:
    type Exception report
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Cannot find any information on property 'hhnum' in a bean of type 'com.penntraffic.emeApp.WebPageData'
              org.apache.jasper.runtime.JspRuntimeLibrary.getReadMethod(JspRuntimeLibrary.java:839)
              org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1045)
              org.apache.jasper.compiler.Node$GetProperty.accept(Node.java:1101)
              org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
              org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
              org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2392)
              org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
              org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
              org.apache.jasper.compiler.Generator.generate(Generator.java:3394)
              org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:210)
              org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
              org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
              org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
              org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
              org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
              org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
              org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
              javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    This shouldn't be this hard!! Any help would be greatly appreciated!

    Do you mean the trackpad?

  • How to setup resources in a WS project to be loaded from classpath?

    When I came in here to write this note, I saw the recent note titled "Placement of resources in WS project and runtime access", which is very similar to what I needed to know, but it isn't quite the same thing.
    I'm trying to put together a WebLogic WS project where the operations call out to a bean in a Spring context. I think I would use something like "ContextSingletonBeanFactoryLocator.getInstance("classpath*:applicationContext.xml")" in the operation.
    What I'm a little confused about is where I would put the Spring context file in my application. In a "plain" webapp, I would just put it into WEB-INF/classes, but that seems like a "protected" directory in Workshop.
    What is the best way to set this up?

    Ok, I guess I should have been clearer. When I said that "WEB-INF/classes" appears to be a "protected" directory in Workshop, I meant that I can't even see that directory when viewing the project in Workshop. The only way I know it's there (besides knowing it should be there) is when I tried to create that directory in the project, and seeing in the file browser that it's already there.

  • CMR Problem: Can you create CMR beans in different packages?

    I created a Related Entity bean (ClassA) and unchecked the boxes that indicated it would create the other entity beans that were linked to the table.
    I then created new Entity beans (ClassB and ClassC) in separate packages. I then set up the relationships in the ClassA Related module. Did the mappings, etc.
    When I compile the application I get an error message indicating that the accessor methods (which the IDE auto-generates!) to what I have set as CMR fields can only be for CMP or CMR fields!
    I've tried the PartsSupplier2CMR example and deployed it, but it is a flat tree.
    Has anyone else come across something like this??
    Thanks

    I copied and pasted your code as well as made c08 and c09 directories. I had no errors compiling. I am using NT, but it appears that your problem is Classpath related. You can try to CD to the C:\Java directory and compile using "javac c09\Test.java" That's the command I used.

  • How to run a client program in Session bean using weblogic 8.1

    Hi
    I am new to weblogic server 8.1. I sucessfully deployed session ejb Session Bean. I created sessionbean jar file and put it it classpath also.
    and also i created sessiobeanclient jar file, it included in class path.
    While running client program it throws exception like noclass def found exception
    plz tell me the right way to run the session ejb program.
    bye

    Hi,
    You have to follow the given steps before you are going to run the client program that invokes the session bean .
    1)set the Weblogic Environment using the tool setWLSEnv
    2)place the Session bean jar file in classpath
    3)run the client program
    Note:If the client has to execute on remote machine we need to copy client class,remote interface, home interface and other classes which are used as
    parameters and return types.
    Regards
    Anilkumar kari

Maybe you are looking for

  • MacBook Pro and Samsung screen compatibility

    Hi there I have a 13" MacBook Pro 7,1, screen resolution 1280 x 800.  I also have a Sony HDVD camera [HDR-SR11E]. I am thinking of buying a Samsung monitor for ease of video and picture editing -- SAMSUNG 2333HD, which has a 23-inch widescreen displa

  • How to change the color of label of af:inputText

    Hi, I want to change the color of label of <af:inputText> box . I used skinning for this , but this is not working. what i m doing is af|inputText::label{ color:red; bt this is not working , please suggest me some way to do it... bt if i do this af|i

  • Button not working...and I don't even know why

    I have this on frame 1: //FRAME NUMBER// slidenumber_txt.text = currentFrame + " de " + totalFrames;Object(this). //BUTTONVISBILITY// a_btn.visible = true; b_btn.visible = true; c_btn.visible = true; d_btn.visible = false; e_btn.visible = false; f_bt

  • M View Using DB Link ??

    Dear Guru's, DB_VERSION=10.2.0.4 OS_VERSION=Windows 2008 R2 RAM_SIZE=32 GB We have 2 production (OLTP) database( DB1 (18GB) and DB2 (200GB) ) on a server out of which DB2 database has almost 20 Materalized Views all (REFRESH FORCE ..ON DEMAND). I hav

  • Data Log File Refnum Type Def Bug??

    Hello, I just found some quirky behaviour (LV 7.1.1): 1. In the attached LLB, open "RefnumVI.vi" 2. Select the Data Log File Refnum control and open it for editing (Edit - Customize Control ... from the menu) 3. Close "RefnumVI.vi" but leave "Refnum.