Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2009
    Posts
    2
    Rep Power
    0

    Default jsp and java bean error in jrun 4 server

    hi all,

    test.jsp
    =====

    <%
    TestBean tb=new TestBean();
    String s=tb.getStr();
    out.println("s="+s);
    %>

    TestBean.java
    ============
    public class TestBean
    {
    public String getStr()
    {
    return "sandeep";
    }
    }

    these pages,

    c:\jrun4.0\servers\default\sandeeppack

    structure
    =======
    sandeeppack\test.jsp
    sandeeppack\WEB-INF\classes\TestBean.class
    sandeeppack\WEB-INF\web.xml

    1) IIS succesfully configured.

    2) J2EE COMPONENTS
    ===============
    WEBAPPLICATION TAB
    =============
    c:\jrun4.0\servers\default\sandeeppack --ADDED

    SETTINGS TAB
    ===========
    JDK PATH
    =======
    F:/j2sdk1.4.1_02

    CLASSPATH
    =========
    c:\jrun4.0\servers\default\sandeeppack\WEB-INF\classes\TestBean.class

    DEPLOYMENT SETTINGS TAB
    =====================
    c:\jrun4.0\servers\default\sandeeppack\


    3) WEB CONFIG TOOL
    ==============
    sucessfully added.

    81--portno i kept in IIS SERVER

    but when i run my application,
    like,
    some times, test.jsp page --recognising

    sometimes not all..---simply PAGE CAN NOT BE DISPLAY error

    if recognising, JAVA BEAN method not calling.

    FIRST OF ALL instance is showing error.
    class instance.

    java page not recognising at all.


    please look this once...ASAP
    regards,
    sandeep

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

    so no more detailed specific stack trace or error message from the jrun?

    what about your java version on your machine, for example, if the jrun server here runs java 1.4.1_02 and your desktop developer workspace has java 1.5 on it, that would case the class to not be able to be loaded, unless the javac options had the -source 1.4 -target 1.4 arguments during compile time.

Similar Threads

  1. bean compilation error
    By technical_helps@yahoo.com in forum Enterprise JavaBeans (EJB)
    Replies: 0
    Last Post: 07-30-2009, 12:21 AM
  2. updating server side file using java bean
    By tskarthic in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 04-30-2009, 03:53 PM
  3. stateless session bean error
    By mihael in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 01-20-2009, 09:22 AM
  4. Bean class error
    By impact in forum Java Servlet
    Replies: 5
    Last Post: 08-16-2008, 04:46 PM
  5. Error deploying Entity Bean
    By RobertoWIN_MX in forum Enterprise JavaBeans (EJB)
    Replies: 0
    Last Post: 05-01-2008, 06:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •