JMS in JSP!!help!!

jsp code
<%@ page import="javax.naming.*" %>
<%@ page import="javax.jms.*" %>
<%
String queueName = null;
Context jndiContext = null;
QueueConnectionFactory queueConnectionFactory = null;
QueueConnection queueConnection = null;
QueueSession queueSession = null;
Queue queue = null;
QueueSender queueSender = null;
TextMessage message = null;
jndiContext = new InitialContext();
queueConnectionFactory =(QueueConnectionFactory)jndiContext.lookup("jms/QueueCon");
queue = (Queue) jndiContext.lookup("jms/Queue");
queueConnection = queueConnectionFactory.createQueueConnection();
queueSession = queueConnection.createQueueSession(false,Session.AUTO_ACKNOWLEDGE);
queueSender = queueSession.createSender(queue);
message = queueSession.createTextMessage();
message.setText("This is message ");
queueSender.send(message);
out.println("this is a test!");
%>
but
Warning : Illegal connection factory access to jms/QueueCon. J2EE Components sho
uld access JMS Connection Factories through a resource-ref in java:comp/env
Why??help

It's in the specification.
_sjz.                                                                                                                                                                                                                               

Similar Messages

  • Help !!!! Jms in Jsp

    jsp code
    <%@ page import="javax.naming.*" %>
    <%@ page import="javax.jms.*" %>
    <%
              String queueName = null;
    Context jndiContext = null;
    QueueConnectionFactory queueConnectionFactory = null;
    QueueConnection queueConnection = null;
    QueueSession queueSession = null;
    Queue queue = null;
    QueueSender queueSender = null;
    TextMessage message = null;
    jndiContext = new InitialContext();
    queueConnectionFactory =(QueueConnectionFactory)jndiContext.lookup("jms/QueueCon");
    queue = (Queue) jndiContext.lookup("jms/Queue");
    queueConnection = queueConnectionFactory.createQueueConnection();
    queueSession = queueConnection.createQueueSession(false,Session.AUTO_ACKNOWLEDGE);
    queueSender = queueSession.createSender(queue);
    message = queueSession.createTextMessage();
    message.setText("This is message ");
                   queueSender.send(message);
                   out.println("this is a test!");
    %>
    but
    Warning : Illegal connection factory access to jms/QueueCon. J2EE Components sho
    uld access JMS Connection Factories through a resource-ref in java:comp/env
    Why??help

    it may be you jsp are not in a web application.
    you can modify the "jms/... " to "java:comp/env/jms ...";

  • Unable to compile class for JSP--- help me plz!!!!!

    hi friends;
    Pease suggest me where i am wrong, i think javabean is not instantiated in jsp file.may be it is related to the classpath of javabean. i have not set any variable for javabean classpath. and i put javabean class file in
    TOMCAT_HOME/webapps/test3/WEB-INF/UseDta.class
    and all the jsp and html in /test3. my jsp an javabeans are--
    1. GetName.html
    <HTML>
    <BODY>
    <FORM METHOD=POST ACTION="SaveName.jsp">
    What's your name? <INPUT TYPE=TEXT NAME=username SIZE=20><BR>
    What's your e-mail address? <INPUT TYPE=TEXT NAME=email SIZE=20><BR>
    What's your age? <INPUT TYPE=TEXT NAME=age SIZE=4>
    <P><INPUT TYPE=SUBMIT>
    </FORM>
    </BODY>
    </HTML>
    2. SaveName.jsp
    <jsp:useBean id="user" class="UserData" scope="session">
    <jsp:setProperty name="user" property="*"/>
    </jsp:useBean>
    <HTML>
    <BODY>
    Continue
    </BODY>
    </HTML>
    3. UserData.java
    public class UserData {
    String username;
    String email;
    int age;
    public UserData(){}
    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; }
    4. NextPage.jsp
    <jsp:useBean id="user" class="UserData" scope="session"/>
    <HTML>
    <BODY>
    You entered<BR>
    Name: <%= user.getUsername() %><BR>
    Email: <%= user.getEmail() %><BR>
    Age: <%= user.getAge() %><BR>
    </BODY>
    </HTML>
    url: http://localhost:8080/test3/GetName.html
    is it related to context path??
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 2 in the jsp file: /SaveName.jsp
    Generated servlet error:
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\test3\org\apache\jsp\SaveName_jsp.java:44: cannot find symbol
    symbol : class UserData
    location: class org.apache.jsp.SaveName_jsp
    UserData user = null;
    ^
    An error occurred at line: 2 in the jsp file: /SaveName.jsp
    Generated servlet error:
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\test3\org\apache\jsp\SaveName_jsp.java:46: cannot find symbol
    symbol : class UserData
    location: class org.apache.jsp.SaveName_jsp
    user = (UserData) jspxpage_context.getAttribute("user", PageContext.SESSION_SCOPE);
    ^
    An error occurred at line: 2 in the jsp file: /SaveName.jsp
    Generated servlet error:
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\test3\org\apache\jsp\SaveName_jsp.java:48: cannot find symbol
    symbol : class UserData
    location: class org.apache.jsp.SaveName_jsp
    user = new UserData();
    ^
    3 errors
    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
    org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:437)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:497)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.30 logs.
    Apache Tomcat/5.0.30
    please Reply me ASAP
    i'll be glad if you reply. please

    I am using Tomcat 6.0.
    I have put my UserData class in user package and
    used in below jsp(SaveName.jsp)
    <%@ page import="user.UserData" %>
    <jsp:useBean id="user" class="user.UserData" scope="session"/>
    <jsp:setProperty name="user" property="*"/>
    <HTML>
    <BODY>
    Continue
    </BODY>
    </HTML>
    I have already set my classpath as C:\Documents and Settings\user\My Documents\Java\apache-tomcat-6.0.16\apache-tomcat-6.0.16\webapps\ROOT\WEB-INF\classes;
    UserData class is in C:\Documents and Settings\user\My Documents\Java\apache-tomcat-6.0.16\apache-tomcat-6.0.16\webapps\ROOT\WEB-INF\classes\user
    My UserData class is
    package user;
    public class UserData {
    String username;
    String email;
    int age;
         public UserData(){
              this("","",0);
              System.out.println("najn thanne puli");
         public UserData(String username,String email,int age){
              this.username=username;
              this.email=email;
              this.age=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; }
    But running SaveName.jsp shows exception
    org.apache.jasper.JasperException: /SaveName.jsp(2,0) The value for the useBean class attribute user.UserData is invalid.
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
         org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1200)
         org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1160)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2393)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2399)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
         org.apache.jasper.compiler.Generator.generate(Generator.java:3372)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:294)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:281)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    Please help me.thanks in advance.

  • JasperException: Unable to compile class for JSP HELP

    I added couple of extra class files into the jar file.. and now its not able to find it! I am running JBoss latest version and using eclipse... any help wud be nice
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    Only a type can be imported. org.jfree.chart.servlet.WebHitChart resolves to a package
    Generated servlet error:
    Only a type can be imported. org.jfree.chart.servlet.WebHitDataSet resolves to a package
    An error occurred at line: 10 in the jsp file: /bar_chart.jsp
    Generated servlet error:
    WebHitChart cannot be resolved
    An error occurred at line: 10 in the jsp file: /bar_chart.jsp
    Generated servlet error:
    WebHitDataSet cannot be resolved
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

    just a random guess...
    I had a ton of issues with JBoss and jfreechart. JBoss uses a different classloader, and its internal versions of the jfreechart classes will be loaded before yours, causing all sorts of issues. Dig through the jboss directories and you'll find a different, older version of jfreechart of one of its classes. Remove them and you'll be in better shape.
    Alternatively, look around the JBoss docs for how to disable/turn off the unified classloader for your app (its a directive in jboss-web.xml IIRC). This should make the classloader for your webapp perform to spec, getting rid of the class colission issues.

  • Java mail and jsp -HELP!! HELP!!

    Hi all
    I have a simple email module with a jsp page and a html page I am trying to connect to a yahoo smtp server and send a mail from the webpage to the smtp server - I am getting an Authentication required error.
    error ##
    org.apache.jasper.JasperException: Sending failed;
    nested exception is:
         class javax.mail.MessagingException: 530 authentication required - for help go to http://help.yahoo.com/help/us/sbc/dsl/mail/pop/pop-11.html
    Can anyonne tell me how to use a simple smtp email facility
    how to use an authenticator in the jsp
    ciao
    laodingdockjavaguy

    It's required that you authentificate yourself at the smpt server
    The following snipplet sends a msg using the smtp protocol.
    Transport tr = session.getTransport("smtp");
    tr.connect(smtphost, username, password);
    msg.saveChanges();     // don't forget this
    tr.sendMessage(msg, msg.getAllRecipients());
    tr.close();If this still fails You can also try to set the property mail.smtp.auth to true.
    mail.smtp.auth      boolean      If true, attempt to authenticate the user using the AUTH command. Defaults to false.see also http://java.sun.com/products/javamail/1.3/docs/javadocs/com/sun/mail/smtp/package-summary.html
    for a complete description of the properties supported by the smpt transport.
    hope it helps

  • OpenDocument.jsp help needed

    I am trying to configure a URL link to a crystal reports.
    This has been done
    1. Crystal reports created, connected to SAP.
    2. Report saved to CMS.
    3. Run, Viewed last instance in Infoview.
    I would like to create a URL to view this report, so I have this.
    http://hostname:port/OpenDocument/opendoc/openDocument.jsp?docid=7941&sInstance=Last
    I get directed to a logon page. the logon page has url properties of this:
    http://hostname:port/PartnerPlatformService/service/app/logon.do?appKind=InfoView&service=%2FOpenDocument%2FappService.do&backContext=%2FOpenDocument&backUrl=%2Fopendoc%2FopenDocument.jsp%3Fdocid%3D7941%26appKind%3DInfoView%26isApplication%3Dtrue%26sInstance%3DLast&backUrlParents=1&appName=OpenDocument&prodName=BusinessObjects+Enterprise&cmsVisible=false&cms=hostname%3A6400&authenticationVisible=false&authType=secEnterprise&sso=true&sm=false&smAuth=secLDAP&persistCookies=true&sessionCookie=true&useLogonToken=true
    I logon with crystal admin user
    And I get the page http://hostname:port/PlatformServices/service/app/error.do
    An error has occurred: An error occured while trying to view the document
    Any direction as to what has gone wrong is greatly appreciated! Thank you!

    Hi,
    do you use docid or iDocID in your URL. Please note that the parameter names are case-sensitive.
    I would recommend to take a look at the documentation in order to identify the correct syntax for your URL
    [http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_url_reporting_opendocument_en.pdf]
    Regards,
    Stratos

  • Who will help me ????JSP help

    Hi ,
    I am using tomcat and try to play around the authentication provided by tomcat examples ....
    i go here http://localhost:8080/examples/jsp/security/login/login.jsp ,i think most of u guys knows where the hell is this page .....but do i know the user name and password.
    <html>
    <body>
    <h1>Login page for examples</h1>
    <form method="POST" action="j_security_check" >
    Username: <input type="text" name="j_username"><br>
    Password: <input type="password" name="j_password"><br>
    <br>
    <input type="submit" value="login" name="j_security_check">
    </form>
    </body>
    </html>

    <tomcat-users>
    <user name="tomcat" password="tomcat" roles="tomcat" />
    <user name="role1" password="tomcat" roles="role1" />
    <user name="both" password="tomcat" roles="tomcat,role1" />
    <user name="cypoon" password="pcyuen98" roles="admin" />
    </tomcat-users>
    This is the file you mentioned about ,and i have tried all those password but none of it able to login.
    All *.xml settings are original unzip from apache web site.
    PLEASE HELP.

  • Urgent:JMS AND JSP

    I am working with an architecture which has JSP pages talking to JMS message bean and in turn message bean talks to EJB, which persists the user data.
    I am quite new to JMS. My understanding is that JMS is used for Asynchronous operations. The requirement is a user can enter some data using form and the jsp page is supposed invoke a message bean which goes through other layers to store the info in the DB and should display a user An ID from the DB. How do I implement a mechanism to get message back from the Message Bean? I am using WebLogic Appserver 6.1. Please help

    First of all, you need to realize that your client and users are not the same thing. All your web requests come thru the webserver and into a certain application space, and your message queue is associated with that application, not each web user. So you only have one client to the message queue.
    Clearly you need to identify each web user in a unique way.
    Generate a sequential and unique ID for each web user and keep this is a hashtable. Remove it from the hashtable once the web user has no longer used it after a certain timeout period. If you are using Servlets then use the Session ID which is sent and received in cookies and used to link the broken session of web browsing.
    Send this unique ID with your message. And then link it back up to the original web user, once you have received a response from the queue.
    It does'nt sound like you need message queues though, since you want to return an immediate response to your client. However, look into Session.CLIENT_ACKNOWLEDGE which provides a synchronous receiver. I doubt if it will solve your problem as this works on the session level and not the message level. But check it out.
    I dunno, your question is vague, you need to provide more info.

  • Need JSP helps

    Hello all, i am here to learn JSP. I am in need of some good tutorials or link. so, if you please suggest me some tutorials or give me some efficient links, that will be very helpful for me.....Thanks to all.

    NareshIndia wrote:
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPIntro.html
    This one is heavily outdated. Please always link the most recent one.
    Here it is: [http://java.sun.com/javaee/5/docs/tutorial/doc/].

  • Need JSP HELP

    I am trying to figure out a bunch of code in jsp, it is a html form with some textfield and two button, one is "ok" and another is "cancel", I want to make different response when client click on the buttons, if they choose ok, I want to insert the value of those text field into an arrylist, and return back to previous jsp page, if they choose cancel, I just want to return back to previous jsp page, and with nothing changed in the arrylist, I was wondering how can I deal with the button name with both method "submit" and action"./some.jsp".
    Please help! thx a lot!

    Make sure you name your submit button. Something like:
    <input type="submit" value="OK" name="foo">
    <input type="submit" value="CANCEL" name="foo">
    Then, when you submit the page (let's assume you're submitting the page to itself), add something like this at the very top of your code:
    <%
    String x = request.getParameter("foo");
    if (x != null) {
      if (x.equals("OK")) {
        // add OK handling code here
      } else if (x.equals("CANCEL")){
        // add CANCEL handling code here
    %>

  • HtmlB jsp help...

    Hi, I am studying how to build JSP iViews currently trying to convert some jsp's into iViews and currently studying the htmlb api.  I have provided some sample code and was wondering if someone can provide the direct htmlb translation of it.  Like for example, I know '<form id="myFormID">' is written as <hbj:form id="myFormId"> but the rest I'm not sure of. 
      Thanks so much in advance for looking at this question.
    Thanks again,
    Baggett.
    <b><html>
    <head><title>Welcome</title>     
         <link rel="stylesheet" TYPE="text/css" href="/testCss/style.css" />
        <script language="JavaScript" type="text/JavaScript">
          var myOptions = new Array("languages");
           function varLoaded() {
            alert("test");
        </script>  
    </head>
    <body class="testClass" onLoad="javascript:varLoaded();">
      <form action="/test/test.jsp" method="post" name="testForm">
           <input type="hidden" name="hiddenTest" value="">  
          <table cellpadding="2" cellspacing="15" style="position:relative;left:120px;top:20px;" >
            <tr><td class="tophead" nowrap><div id="testMenu"></div></td></tr>
          </table>  
      </form>
    </body>
    </html></b>

    Hello Baggett-
    To get more in-depth information about the HTMLB control library online please visit: http://www.sapdesignguild.org/resources/htmlb_guidance/index.html
    In the content under this link you will find extensive documentation about HTMLB as a class library for the Dynpage model and as a tag library for the JSP Dynpage model.
    Alternatively for offline reading you can download the file 'htmlb_guidance.zip' available at: http://www.sapdesignguild.org/resources/htmlb_guidance/htmlb_guidance.zip
    This is a very rich resource on HTMLB and should provide you all the information that you require starting out with this nice user interface control set.
    Hope this helps,
    - Vik.

  • Jsp help needed, urgent

    hi all
    i am using JSTL for my jsp in tomcat 5.5. the following code always gives me exception:
    <fmt:message key="viewbills.title" bundle="${lang}"/>javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute "bundle" with value "${lang}": Attempt to convert String "en" to type "javax.servlet.jsp.jstl.fmt.LocalizationContext", but there is no PropertyEditor for that type (null)
    does anyone know what the cause is and way of fixing it> thanks a lot.

    You're never submitting the data on your form to the selectedexercises.jsp. All you're doing is telling the first.jsp to open this page in a new window -- you're never passing parameters to that new window.
    One way to do it would be to change your form tag to be:
    <form name="f1" action="/ap1/selectedexercises.jsp">
    This will go to selectedexercises.jsp with the form data as parameters to the page.
    I'm assuming that's what you're trying to do -- it's tough to tell from these code samples.
    Hope that helps,
    Mike

  • Urgent ...... jsp help

    hi.
    i need an urgent help with jsp and the database query.
    i have a combo box that has the list of products (this is a query) that i get when a customer logs in to our system with proper authorization. when a person clicks on a product, i need to do a query to get all the brands of that product and form another combo box.
    for example:
    i have a combobox that has products like monitors, soundscard, harddisk, floppy, etc...
    now when i click on say monitor, i have to generate a combobox with the list of monitors like, dell, compaq, viewsonic, etc... on the same page. how do i do that? does this have to be done using javascript using onChange()? if yes, then how do i do it? can we do sql query using javascript?
    any help will be highly appreciated.
    kushan

    No, you can't execute SQL queries using Javascript. You can, however, use the onChange to repost the page and load the correct brands into the new ComboBox. While this is not the most elegant solution (it usually results in a quick screen flash to the user), it is fairly easy and effective.
    Alternately you could use some extensive Javascript to pull all the potential products and brands ahead of time and populate the combobox, resulting in a slightly more seamless transition. This is slightly harder to accomplish, and the original query will take longer since all the possibilities must be returned from the database.

  • Tomcat 4.0 Precompile JSP - Help!

    I wish to create an Ant script to precompile my JSP as the project I'm working on is being reworked so objects are changing and JSP needs to be updated accordingly. At the moment we have to navigate the site to find any effects of changing an object - so we may not get a page compilation error for some time.
    Can anyone point me in the right direction to find help on compiling my JSP. I don't even know where to start. I cannot find anything on the Jakarta site ... Help!!!

    I've never tried it, but Ant does have an optional task called JspC to precompile JSP pages...
    http://jakarta.apache.org/ant/manual/OptionalTasks/jspc.html

  • JSP Help needed

    i'm now starting to study JSPs and just bought a
    book by Wrox(Java Server Programming) and i have a problem with
    some codes..i always got exception and i don't knwo why,..maybe you
    could help me out..here is my simple code adn the exeption and also
    my classpath settings:
    ClassPath:
    .;%classpath%;
    %JAVA_HOME%\lib\tools.jar;
    .;%J2EE_HOME%\lib\j2ee.jar;
    .;%TOMCAT_HOME%\lib\servlet.jar;
    .;%JAVA_HOME%\jre\lib\rt.jar;
    .;%JAVA_HOME%\lib;
    .;%JAVA_HOME%\jre\lib\ext\servlet.jar
    Path:
    %SYSTEMROOT%;
    %SYSTEMROOT%\COMMAND;
    .;%JAVA_HOME%\bin;
    c:\Tomcat\bin;
    %SYSTEMROOT%\system32;
    %SYSTEMROOT%\system32\WBEM;
    c:\windows\command;
    .;%J2EE_HOME%\bin
    Here is my Jsp code:
    <%@page import="java.util.Date"%>
    <html>
         <body>
         The current time is <%= new Date().toString() %>     
         </body>
    </html>
    Here is the Exception:
    Error: 500
    Location: /JSPExamples/simple.jsp
    Internal Servlet Error:
    javax.servlet.ServletException
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
         at org.apache.tomcat.core.Handler.service(Handler.java:286)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
         at java.lang.Thread.run(Thread.java:484)
    Root cause:
    java.lang.NoSuchMethodError
         at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:209)
         at _0002fsimple_0002ejspsimple_jsp_0._jspService(_0002fsimple_0002ejspsimple_jsp_0.java:75)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
         at org.apache.tomcat.core.Handler.service(Handler.java:286)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
         at java.lang.Thread.run(Thread.java:484)

    it worked OK on my machine. Can you browse Tomcat's default content OK? For example, if you point your browser at:
    http://localhost:8080
    Do you see the tomcat "homepage"? If so, try clicking on some of the JSP examples there - do they work?
    Another thing to try is this: look in the tomcat directory, and you'll find a subdirectory called "work". This is the "cache" directory, where tomcat puts the servlet code it has generated from your JSP.
    There will probably be a few subdirectories within this "work" directory, all called something like "localhost_8080%2FMYAppname". In one of these directories you'll find a file called "_0002fsimple_0002ejspsimple_jsp_0.java"
    If you open this in an editor you can look at line 75 to see exactly what the thing is barfing on.

Maybe you are looking for

  • Is there a way to create a group alias that I can text/message?

    Similar to an e-mail alias that contains multiple e-mail addresses which makes it easy to send one message to multiple people, I'd like to be able to create a group alias from some set of contacts in my Address Book that I can send a message (either

  • How to update row by row  in   Jdbc Adapter sender  ?

    Hi friends ,                   No i am reading data from a table using select query and resulting data i am keeping in the FTP folder as XML File.                   I want to                  1. to  know how many rows i read ?                   2. Up

  • How to apply same Animation to different Objects?

    Hello, So, as the question stated, I am trying to animate multiple objects in the scene with the same animation. For example, I have a SQUARE and a CIRCLE in the scene, both of them in different layers. I want them to both scale from 0% to 120%, then

  • How can I get my i4 ihotspot to work. I can't even find it again

    Hey guys, I'm running the current O/S version however I don't have the ihotspot? I had it at some point in it, but it's not there anymore. I've tried the network rest and nothing to avail. Can you guys help? Alo since I've upgraded to the current O/S

  • Does the iPhone 5s comes with global or international warranty ?

    I have read some news that, apple has planned to provide global warranty for iPhone 5 (A1429) GSM, does the iphone 5s also comes with global warranty ?