Problem Loading JDBC Enabled JSP Page

Hi all, does anyone knows that's the case of this error:
This happened when I tried to access MySQL Database from remote client. I have no problem loading normal jsp file w/o JDBC Connection. Kind of confused on what is going on
Regards,
Joe
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: com.mysql.jdbc.Driver
     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
     at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
     at java.lang.Thread.run(Thread.java:536)
root cause
javax.servlet.ServletException: com.mysql.jdbc.Driver
     at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
     at org.apache.jsp.dbquery_jsp._jspService(dbquery_jsp.java:112)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
     at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
     at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
     at java.lang.Thread.run(Thread.java:536)
Apache Tomcat/4.1.24

Hi scsi-boy, first of all, thank you so much for your
prompt and fast response. So how do i tackle
ClassNotFoundException ?.i'm sorry coz i'm a newbie to
jsp. I hope by providing my configuration below could
aid you in understanding my problem.
I've place the setting config in /etc/profile with the
following:
JAVA_HOME=/usr/local/java
CATALINA_HOME=/usr/local/tomcat
ANT_HOME=/usr/local/ant
APACHE_HOME=/usr/local/apache
MYSQL_HOME=/usr/local/mysql
CLASSPATH=${CATALINA_HOME}/common/lib/servlet-api.jar:$
YSQL_HOME/connector/mysql_connector/mysql_connector-jav
-3.08-stable-bin.jar:${JAVA_HOME}/lib/tools.jar:${JAVA_
OME}/jre/lib/rt.jar:./
PATH=${PATH}:${JAVA_HOME}/bin:${ANT_HOME}/bin:
MANPATH=${JAVA_HOME}/man:${MANPATH}
export JAVA_HOME ANT_HOME APACHE_HOME MYSQL_HOME
CATALINA_HOME CLASSPATH PATH MANPATH
As you can see, i've un-tar mysql_connector in
/usr/local/mysql/connector directory and set my
classpath to point to that file. Is that the proper
way to do it?
Regards,
Joesorry not a JSP expert however just to clarify i am guessing that it is a ClassNotFoundException. it could be something else entirely and i don't really want to send you on a wild goose chase. we need to know what the root exception actually is.
i am off to sleep now but i'm sure if you can give a little more information which may involve figuring out how to get it to cough up more information someone will help you here.

Similar Messages

  • Problem with onload in jsp page

    Hi all,
    I had two jsp pages, a search and a results page. I need to enter some search criteria in the first page and based on that criteria i will be getting the results in the results jsp. Now, when i click the back button in the results page, i need to go to the search page and the values which i entered in the search page needs to be present there. But the problem is i had a javascript function which runs on loading of the search page. This function will set all the values in this search page to empty whenever we go to the search page. I am calling this javascript function as follows in my search jsp page.
    <body onload="setdefaultvalues('<%=name%>');">
    I am having the code for the back button in the results page as follows.
    <INPUT TYPE="button" VALUE='Back' onClick="javascript:history.go(-1);resetvalue(name);" class="button">
    The problem i am facing is whenever i go to the search page by clicking on the back button, the values in the search page are getting empty because of the onload method. There is no way that i can remove this onload method as i require it for setting the values in the search page evrytime i get to that from other modules as it is the main page for my module. So, is there anyway that i can stop this function from executing when i come from the results page or is there any other way that i can store the values in the search page when going from the results page.

    i think you really should have the result page include your search page contents rather than having the user need to click back as you'll end up with all sorts of nightmares in caching & session object management to be honest. if the search page is complex use javascript to hide contents and let the users expand them when they want to re-search.
    however, if you feel you must i would suggest the following:
    in your result page:
    session.setAttribute("userQuery","true"); (you probably actually want to put a container object with the query information in here)
    in your search page you could have something like:
    <body <% session.getAttribute("userQuery")==null { %>onload="setdefaultvalues('<%=name%>');"<% } %>>
    -or-
    <body onload="setdefaultvalues('<%=name%>',<%=session.getAttribute("userQuery")==null?"true":"false"%>);">
    function setdefaultvalues(name,run) { if ( !run ) return;....}
    you'll have to decide when to remove the object though cause once its set its there until the session expires or you remove it.
    hope that helps, good luck!

  • Problem in running a jsp page on tomcat 5.0

    hi....
    i made a java class abc.java and then compiled it to get a java class file named abc.class in a package named pkg.
    Then i copied this package in the classes folder of the WEB-INF folder in tomcat 5.0.
    After that i created a jsp page in which i imported this class file. Now when i run the jsp page on tomcat 5.0 i get an error saying this:
    javax.servlet.ServletException: pkg/abc (Unsupported major.minor version 49.0)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:244)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.UnsupportedClassVersionError: pkg/abc (Unsupported major.minor version 49.0)
         java.lang.ClassLoader.defineClass0(Native Method)
         java.lang.ClassLoader.defineClass(ClassLoader.java:502)
         java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
         org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)
         org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
         org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1214)
         org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         org.apache.jasper.compiler.Generator.generate(Generator.java:3272)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:495)
         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)
    Can anyone please tell me the solution to this problem?
    thanks

    This post:
    http://mail-archives.apache.org/mod_mbox/jakarta-tomcat-user/200408.mbox/%[email protected]ys.com%3E
    Leads me to believe that you're compiling and targeting a java version that your tomcat installation doesn't support. What version of the JDK are you using?
    Good Luck
    Lee

  • How to load only the jsp page even after applying template

    Hi,
    I have a webpage template with header,footer, Dynamic Menu etc. Now I assigned this .jtpl template to all my existing fases jsp files.
    The problem is when I submit a form in jsp, the entire page including template gets loaded again by which we can notice significant time for loading menus and other things.
    Is there any way to avoid this entire template loading and make only the jsp page to load? Please help
    May be this can be achieved by frames. But I dont have idea on how I can merge template with frames. If someone can provide that even would help me better.
    Thanks in advance.

    Hi
    I found the solution .
    <html>
    <head>
    <script language="JavaScript">
    function checkRefresh()
    if( document.refreshForm.visited.value == "" )
    alert('first ime');
      // This is a fresh page load
      document.refreshForm.visited.value = "1";
      // You may want to add code here special for
      // fresh page loads
    else
    </script>
    </head>
    <body onLoad="JavaScript:checkRefresh();">
    <form name="refreshForm">
    <input type="hidden" name="visited" value="" />
    </form>
    </body>
    </html>

  • Strange problem (Korean language in jsp page) - Urgent Please

    Dear friends,
    I have a strange problem.
    in my jsp page, i have to add hangul words also using korean language. (hangul).
    After adding hangul language in jsp page, in browser, it is displaying in some other format.
    how can i display hangul script on browser using a jsp page.
    please help me.
    Thanks in advance
    Yours
    Rajesh

    Dear noahlau,
    Thank you very much.
    I got the solution for this problem
    I used korean encoding char set like this in my jsp program.
    <%@page contentType="text/html;charset=ks_c_5601-1987"%>
    Now it is working fine.
    Thanks once again.
    if you need any help please ask me.
    Yours
    Rajesh

  • Applet loads in one jsp page and doesn't in the other

    Hi,
    I've got a strange problem. I've written an applet which I want to embed in a jsp page in a web application. I've created a very small web application to simplify testing the applet, and all works well in it. But when I try to embed the applet in my real web application (exactly the same way) it fails to init, firefox hangs, and in java console I get;
    java.lang.ClassFormatError: Incompatible magic value 168430090 in class file pl/cardq/applet/GameApplet1
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:178)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:127)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:618)
    at sun.applet.AppletPanel.createApplet(AppletPanel.java:778)
    at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2045)
    at sun.applet.AppletPanel.runLoader(AppletPanel.java:707)
    at sun.applet.AppletPanel.run(AppletPanel.java:361)
    at java.lang.Thread.run(Thread.java:619)
    Any idea what that means?
    Thanks in advance

    Once the print window is open, click on "PDF", in the list of options you will find "open PDF in Preview".
    (I hope my translation is good because I am using French...)

  • Help! Errors seen during loading of a jsp page.

    Hi all,
    I'm a newbie in Tomcat and Jsp, whenever my jsp page loads, all these weird errors appeared, the 2Ballpoint_Pen.jpg image with the IOException actually existed.
    What does the rest of the errors mean? How do I fix them?
    Does all errors actually hangs my Tomcat? There's actually quite alot of such similar errors.
    I'm using Tomcat 3.3.1 and JDK 1.3.1_04.
    Please help me....
    2003-08-12 02:15:22 - Ctx(/osrs) : IOException in R( /osrs + /upload/2Ballpoint_Pen.jpg + null) - java.net.SocketException: Connection aborted by peer: socket write error
    at java.net.SocketOutputStream.socketWrite(Native Method)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:91)
    at org.apache.tomcat.modules.server.Http10.doWrite(Http10.java:436)
    at org.apache.tomcat.modules.server.HttpResponse.doWrite(Http10Interceptor.java:480)
    at org.apache.tomcat.core.OutputBuffer.realWriteBytes(OutputBuffer.java:188)
    at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:360)
    at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:338)
    at org.apache.tomcat.util.buf.IntermediateOutputStream.write(C2BConverter.java:234)
    at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:225)
    at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:239)
    at org.apache.tomcat.util.buf.WriteConvertor.flush(C2BConverter.java:183)
    at org.apache.tomcat.util.buf.C2BConverter.flushBuffer(C2BConverter.java:126)
    at org.apache.tomcat.core.OutputBuffer.realWriteChars(OutputBuffer.java:337)
    at org.apache.tomcat.util.buf.CharChunk.flushBuffer(CharChunk.java:388)
    at org.apache.tomcat.core.OutputBuffer.flush(OutputBuffer.java:314)
    at org.apache.tomcat.core.OutputBuffer.close(OutputBuffer.java:305)
    at org.apache.tomcat.core.Response.finish(Response.java:271)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:838)
    at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
    at java.lang.Thread.run(Thread.java:479)

    My codes are:
    <%
    String imagePath2 = JSPHelper.NOPIC_PATH;
    product = null;
    try
         product = (Product)list.get(count);
         imagePath2 = Validation.getImagePath(product.getImage2());
    catch(Exception e){}
    if(product != null)
    %>
    <img src="<%=imagePath%>" width="120" height="125" alt="For loose items, please collect it personally from General Office" style="cursor=hand" onClick='window.open("Image_view.jsp?id=<%=imagePath2%>","","width=640,height=480,")'>
    <%
    %>
    ----------------------------------------------------------------------

  • Unable to load the second Jsp Page

    Hi,
    I have three jsp pages. The first is a Login.jsp which takes userid and password and after clicking on submit will take the user to the validate.jsp which validates the userid and password and if userid and password are valid redirects to a third jsp which has contentType="application/x-java-jnlp-file". All that is working fine, what is not working is after clicking on submit button I am not seeing validate.jsp page (i.e title and heading etc.), the browser stays in login.jsp page.
    Any suggestions.
    Thanks in advance.

    Hi
    Couple of things :
    1. Make sure that the "ACTION" sttribute in the FORM is pointing to the right URL.
    2. Make sure that the SUBMIT button is inside the FORM tags, then make sure that the SUBMIT button is in the same FORM as the Text Fields .
    If it is still causing you problems , please post your code.
    Good Luck!
    Eshwar Rao
    Developer Technical Support
    Sun microsystems inc.
    http://www.sun.com/developers/support

  • Java problem -- sending email via JSP page

    Below is a copy of my feedback page
    Basically, I am doing my work in a JSP page.
    For now, my plan is that when I click on the ''submit'' button, everything written on the text boxes will be sent to my email (my hotmail address)
    However, I do not know what are the codings needed (honestly speaking, I went up to Google to search but then, the codings are complicated and I don't know what is written) and neither do I know whether should I place all codings on one JSP page or place the codings for submission to my email on another JSP page.
    Please help. Thank you.
    http://i468.photobucket.com/albums/rr43/mrclubbie/feedback_page.jpg (sorry you have to copy the link and paste on your browser)
    Edited by: mrclubbie on Jun 27, 2010 3:05 AM

    You do not have a problem, so stop trying to pretend you have one. Lack of knowledge is not a problem, because it has a very easy fix: study more. Invest some time. Seriously, you are going to find blocks at every corner until you fully understand the tools you are using, and you are not going to find the answers by posting in forums hoping for someone to bail you out.
    I find that Javaworld usually has clear and precise articles, so I would use this one as the basis for your research:
    [http://www.javaworld.com/javaworld/jw-10-2001/jw-1026-javamail.html|http://www.javaworld.com/javaworld/jw-10-2001/jw-1026-javamail.html]
    Good luck!

  • How to load the same jsp page and set user id to 0 when checkbox is selecte

    I hope this question isn't too amateurish to answer, but it is something that has been troubling me.
    I have a jsp page page that display information about a user and has the userID passed in the link. So something like user.jsp?userID=12 for example.
    On the same page I have a form with a checkbox, and a submit button, the html code is as follows:
    <form name="form1" method="get" action="user.jsp">
    <p><input name="userID" id="userID" type="checkbox" value="0"></p>
    <p><input name="Submit" type="submit" value="Submit"></p>
    </form> What I want to do is, if a user ticks the checkbox and presses Submit, I want to load the same page again, but
    set the userID to zero and so the top url has the following: user.jsp?userID=0
    How can I achieve this.
    Thanks for all the help
    Zub

    actually I need a check code which on submit checks if the checkbox is ticked then set the value of UserID to zero. so when I press submit and before the page loads to simply does a check if its ticked? I can write the if statment but I do not know what how to check if the checkbox is ticked and were to include the code

  • Problem in sending a JSP Page as email !!

    Hi,
    I have a web based tool which sends a jsp page as the body of the email. The jsp page contains a table with data. When i forward that email the table in the email is coming up. Kindly suggest something which will prevent me fom this.

    Hi,
    There is an article regarding this at
    http://www.stardeveloper.com/articles/display.html?article=2001101101&page=1
    Best Regards

  • Problem loading jdbc driver in Tomcat

    Hi,
    I have got a connection to MySQL5.0 from TomCat 5.5.13, that was test correctly in development (JSC Upd 1) but I encounter the following deployment error :
    com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
    When I verify, I found that if I put the mysql Connector JDBC driver in <tomcat>/common/lib, there is no error.
    But when the MySql Connector JDBC driver resides in <tomcat>/shared/lib, the error persists.
    What's the difference ? shouldn't it work for both ?
    Thanks in advance for any pointers and advise.

    hmm... i guess that it's a must to include the lib at /common/lib instead of shared/lib .
    Is there a Tomcat resource that I can read up on ?
    rgds

  • Exception in Loading Images in JSP pages

    Hi All,
    I am trying to load an image many number of times(to create a sort of graph).
    I am using Buffered Image & Graphics.drawImage().Still when my page loads I can see only the lines I draw btween the images but not the images.The images are seen only on refresh.
    I get Illegal State Exception ServletHttpResponse.getWriter().
    Can anyone help me with this at the earliest
    THANKS

    Hi,
    Here is part of my code:
    image= new BufferedImage(1000,img_height, BufferedImage.TYPE_INT_RGB);
    grph=image.getGraphics();
    Then in for loop i execute the following ,changing the co-ordinate,required no of times.
    grph.drawImage(myImage,xCord,yCord,xBlock,yBlock,null);
    Finally I do this:
    ServletOutputStream out1 = response.getOutputStream();
    JPEGImageEncoder encoder= JPEGCodec.createJPEGEncoder(out1);
    encoder.encode(image);
    The page that has this code is called by another jsp in the image tag.<img src="drawimage.jsp">
    Please Reply

  • Problems with filters and jsp pages.

    I have the following simple filter that checks if there is user information in the session object and redirects accordingly:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class LoginFilter implements Filter
         public void init(FilterConfig filterConfig) {}
         public void destroy() {}
         public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
         throws IOException, ServletException
              System.out.println("filter");
              HttpSession session = ((HttpServletRequest)request).getSession();
              String action = request.getParameter("action");
              if(action != null && !action.equals("login") && !action.equals("wronglogin"))
                   if(session.getAttribute("username") == null)
                        ((HttpServletResponse)response).sendRedirect("index.jsp?action=wronglogin");
                        System.out.println("User not OK, kicking out...");
                   else
                        chain.doFilter(request, response);
                        System.out.println("User OK, letting in...");
              else
                   chain.doFilter(request, response);
    }The filter is mapped to an admin page with the name index.jsp. However, I get an error for every <% and %> tag in the file (there are quite a few) when I use the filter with the page. The page works fine without the filter, and the filter seems to work with pages without scriptlets (without the <% and %> tags). Here is the beginning of the error report:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 6 in the jsp file: /admin/index.jsp
    Generated servlet error:
    Syntax error on tokens, AnnotationName expected instead
    An error occurred at line: 6 in the jsp file: /admin/index.jsp
    Generated servlet error:
    Syntax error on tokens, delete these tokens
    An error occurred at line: 6 in the jsp file: /admin/index.jsp
    Generated servlet error:
    Syntax error on token ";", [ expected
    An error occurred at line: 6 in the jsp file: /admin/index.jsp
    Generated servlet error:
    Syntax error on token ";", [ expected
    An error occurred at line: 6 in the jsp file: /admin/index.jsp
    Generated servlet error:
    Syntax error on token ";", [ expected
    Jasper gives me many errors per <% and %> tag. As you can see there is a <% tag on line 6. Any idea, why this does not work?
    Thanks!
    Message was edited by:
    chincillya

    What is the JSP scriptlet code at line 6 ?
    By looking at the code we can identify if there are any syntax errors, otherwise we can't really guess what might be the problem.

  • Problem loading internal web auth page when heavy load

    Hi
    I am troubleshooting a wireless-problem related to the internal web authentication page. Simply, when 5-10 computers opens the web browser and got redirected to the 1.1.1.1-page, no problem. But when 20+ computers do this simultanously half of them takes up to a minute to load the web page.
    WiSM:s running latest 6.x-code and 1131 LAP:s.
    Anyone experienced the same or know what this can be related to?
    Br Jimmy

    hi surendra
    pls c below
    we are getting below out put .
    Connection to host lost.
    C:\Documents and Settings\guest>nslookup
    Default Server:  blr-ge-dc01.XXX.com
    Address:  172.50.6.24
    > www.cisco.com
    Server:  blr-ge-dc01.titan.com
    Address:  172.50.6.24
    DNS request timed out.
        timeout was 2 seconds.
    DNS request timed out.
        timeout was 2 seconds.
    *** Request to blr-ge-dc01.XXX.com timed-out
    >

Maybe you are looking for

  • How to Get Yahoo Push Mail to Work on the iPhone- Finally

    I post this for the benefit of all of you struggling with this same problem and how to resolve it. I talked to AppleCare this morning and this is what they said that Yahoo push start working- the first thing that has after spending several solid usel

  • How to convert Number to words In PLD

    Dear Expert, I have view all thread related same..but not getting by PLD... the amount field i want in Indian format that can be placed on cheque/check ? also i add an external data on that PLD now question is that in filed properties ->content -> pr

  • Need to download an older version of Skype!

    So, basically, this new version of Skype and my computer do not get along. There are too many glitches in the newer version that simply makes it unusable on my computer. To cut to the chase, my timezones are all wrong, my country is wrong, and my cha

  • Signout in SPClaimsUtility

    We created two sites, one with FBA and other one is Windows authentication. Code base remain same for both sites, only authentication will get differ. Each site has different signout page and authentication pages. FBA authentication has been implemen

  • Time Machine gives different full backup sizes

    After this recent Time Machine update I am no longer able to back up. When Time Machine computes the backup it tells me that it is 320GB, which is larger than my backup drive, so it can't back up. However, when I go into the Time Machine preferences