JSP error message

I use Jdev3.1 and Oracle8.1.6 deploy locally to TOMCAT3.1
I got some problem:
-JBO 26080 error while selecting entity for typepiece
ORA-01002 fetch out of sequence
-When I insert a new row an leave blank a mandatory attribute I got the following message:Error Message: JBO-27014: Attribute TpStockMin in TypePiece is required=>ok. Then I go back with IE5 add the corresponding value to the mandatory attribute and then got "JBO 27102 Attempt to access dead view row"
-and a lot of Error Message: JBO-27122: SQL error during statement preparation.
Can JDev Team or other explain me what is wrong!!!
thanks.
Olivier

I found that jbomt.zip file has MetaObjectManager.class.
I added wrapper.classpath which include
jbomt.zip file but still error occured..
where directory should I locate that file ?

Similar Messages

  • JSP Error Message Problem

    I keep getting the following error message when I click login on my sample login page:
    Error: 500
    Location: /examples/jsp/gcdBB/Login.jsp
    Internal Servlet Error:
    javax.servlet.ServletException: Syntax error or access violation, message from server: "You have an error in your SQL syntax near '"USERNAME", "PASSWORD") VALUES ('admin','admin')' at line 1"
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:386)
         at jsp.gcdBB._0002fjsp_0002fgcdBB_0002fLogin_0002ejspLogin_jsp_6._jspService(_0002fjsp_0002fgcdBB_0002fLogin_0002ejspLogin_jsp_6.java:97)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174)
         at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
         at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
         at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
         at java.lang.Thread.run(Unknown Source)
    Root cause:
    java.sql.SQLException: Syntax error or access violation, message from server: "You have an error in your SQL syntax near '"USERNAME", "PASSWORD") VALUES ('admin','admin')' at line 1"
         at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1628)
         at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:886)
         at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:945)
         at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:917)
         at com.mysql.jdbc.Connection.execSQL(Connection.java:1806)
         at com.mysql.jdbc.Connection.execSQL(Connection.java:1740)
         at com.mysql.jdbc.Statement.executeUpdate(Statement.java:1309)
         at jsp.gcdBB._0002fjsp_0002fgcdBB_0002fLogin_0002ejspLogin_jsp_6._jspService(_0002fjsp_0002fgcdBB_0002fLogin_0002ejspLogin_jsp_6.java:87)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174)
         at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
         at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
         at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
         at java.lang.Thread.run(Unknown Source)
    How can i solve this error?

    Here is the section of code in question:
    <%
    Class.forName("org.gjt.mm.mysql.Driver");
    java.sql.Connection connection=java.sql.DriverManager.getConnection
    ("jdbc:mysql://localhost:8080/gcdBB_db");
    java.sql.Statement statement = connection.createStatement();
    Enumeration parameters = request.getParameterNames();
    if(parameters.hasMoreElements())
    String usernameValue = request.getParameter("username");
    String passwordValue = request.getParameter("password");
    statement.executeUpdate("INSERT INTO USERS (\"USERNAME\", \"PASSWORD\") VALUES ('"+usernameValue+"','"+passwordValue+"')");
    %>
    Any ideas to solving the problem?

  • Jsp error Message: Access is denied. on customers IE7 and IE8

    Hello,
    Here is a thing:
    Customer getting js error in IE7 and IE8. Firefox works fine.
    I am not able to reproduce on internal machine with ie8. also internally all works in ie9 (also in browsing modes ie7, ie8). and of course firefox works great internally as well.
    Error happens when they navigate back to caller page from popup page (SelectPG) by selecting not partial action. When they click on the commandImageLink popupPage get blanked (get white with no any information on it) and stays and IE showing yellow exlamation mark in the bottom left corner with error:
    Message: Access is denied.
    Line: 1
    Char: 53
    Code: 0
    URI: http://cusomer_host:7001/product/faces/selectFlow/SelectPG?_adf.ctrl-state=1paop64rm_38
    SelectPG is inside bounded taskflow which is ran as dialog from caller taskflow.Popup page SelectPG opens fiine and all information is displayed correctly, they can see table with all information do filtering on table etc...
    i dont have access to customer enviroment. and i am not able to reproduce this on any of our internal enviroments.
    kind of stuck here will appreciate any thoughts/hints/suggestions.
    thanks in advance!

    and it seems that to reproduce this - you can run any of your application which have taskflow's <inline-popup> with this kind of link:
    a href="http://weblogic:7101/yourproduce/faces/yourPage.jspx" target="_blank">go to your application </A
    for some reason target="_blank" makes popup not to be closed throwing the Access is denied error.
    Do you know if there is any patch for this? (updating jdev version is not the option)
    Edited by: user1175340 on Oct 4, 2012 8:03 AM

  • Error message for a JSP-BC4 Application

    Hi,
    I have created a simple BC4J-JSP application using the wizards in Jdeveloper. I used the emp-dept table from scott.
    Then I created a .ear file and uploaded that to an OC4J instance using ias 902 enterprise manager. The main.html comes normally. But when I am trying to click on the left hand navigator the following error message is coming:
    Error Message: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-33001: Cannot find the configuration file /JSP_BC4J_TEST1/common/bc4j.xcfg in the classpath
    Error Message: JBO-33001: Cannot find the configuration file /JSP_BC4J_TEST1/common/bc4j.xcfg in the classpath
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-33001: Cannot find the configuration file /JSP_BC4J_TEST1/common/bc4j.xcfg in the classpath
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:372)
         at oracle.jbo.common.ampool.ContextPoolManager.findPool(ContextPoolManager.java:169)
         at oracle.jbo.http.HttpContainer.findSessionCookie(HttpContainer.java:554)
         at oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag(ApplicationModuleTag.java:143)
         at DeptView_Browse._jspService(_DeptView__Browse.java:58)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:508)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:255)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:535)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:281)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:766)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:152)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:72)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:802)
         at java.lang.Thread.run(Thread.java:484)
    ## Detail 0 ##
    oracle.jbo.JboException: JBO-33001: Cannot find the configuration file /JSP_BC4J_TEST1/common/bc4j.xcfg in the classpath
         at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:237)
         at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:192)
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:348)
         at oracle.jbo.common.ampool.ContextPoolManager.findPool(ContextPoolManager.java:169)
         at oracle.jbo.http.HttpContainer.findSessionCookie(HttpContainer.java:554)
         at oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag(ApplicationModuleTag.java:143)
         at DeptView_Browse._jspService(_DeptView__Browse.java:58)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:508)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:255)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:535)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:281)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:766)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:152)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:72)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:802)
         at java.lang.Thread.run(Thread.java:484)
    Thanks,
    Ritendra.

    I think too, that is a time machine problem.
    I have 4 volume partions (3 hard disk) at this mac. I use only the time machine as backup system. Only one. Before I install Snow Leopard I use the latest MacOS X 10.5.8. Always the newest version of MacOS.
    Perhaps I describe it: Under 10.5.8 I use the time machine backup volume at an external firewire drive, always the same. I switch off this firewire drive often. In this case (the drive isn`t connect) the icon of this partition"Pro10.4" was changed to the time machine volume icon, but the time machine does nothing at this partition.
    After the installation of 10.6 I cannot access to this "Pro10.4" volume. I get the same error message if I want to open the external drive volume of my time machine backup. There is no problems with my other two partition. Of course my old V10.5.8 is at one of this partition. If I start my mac from a other partition (time machine is off), I have no problem with all partitions.
    I change the name of "Pro10.4", but nothing is changing. The time machine protect the backup volume under V10.6. Unfortunately it choose an other partition, if it don`t find my external drive. How can I reset this state of my "Pro10.4"?
    Thanks
    Uwe

  • How to get error message on the same jsp

    Hi guys,
    I have a login.jsp page and I want an error message to be printed "login failed" in the same jsp page when the user enters the wrong credentials.
    Any ideas on how to do that is highly appreciated.
    Thanx in advance.sri

    If you use struts it would have been a lot easier and better than only JSP.
    In struts :
    Add this line in ur JSP page
    <html:errors/>
    In ur Action servlet ex: LoginAction.java add thsi code extract in the appropriate position ...
    ActionErrors errors = new ActionErrors();
    errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("error.user.wrong"));
    if (!errors.isEmpty())
    saveErrors(request, errors);
    But in JSP do something like this:-
    If authentication fails then post to the same JSP and put this code in the reqd position...
    <%
    String postFlag=request.getParameter("postFlag");
    if(postFlag.equals("FAILED"))
    %>
    LOGIN FAILED
    <%
    %>
    So for JSp simply set the request parameter  (postFlag)  to SUCCESSFUL/FAILED  from your servlet.

  • How to setup error message in JSP if no data or page found

    I want to show users some error message after user clicks on a link and no page or data is found.
    How do I show users to a valid error message if there is no data exists after they click on a link?

    Add the following line at the top of your jsp
    <%@ page errorPage="error.jsp" %>
    Then, write a error.jsp in whichever fashion u want.
    My error.jsp begins like this
    <%@ page isErrorPage="true" %>
    <html>
    <head>

  • Error message when inserting table into JSP

    I am using JDEV 10.1.3.3 and am getting the following error message when I try to create a table in a form on a jsp:
    "Could not complete get pdusage from application because it would result in an invalid document".
    Here is the stack trace:
    oracle.bali.xml.model.XmlReadOnlyException: read-only on commit
         at oracle.bali.xml.model.XmlModel.__precommitTransaction(XmlModel.java:2676)
         at oracle.bali.xml.model.XmlContext.__precommitTransaction(XmlContext.java:1519)
         at oracle.bali.xml.model.XmlContext.__commitTransaction(XmlContext.java:1549)
         at oracle.bali.xml.model.XmlModel.__requestCommitTransaction(XmlModel.java:2717)
         at oracle.bali.xml.model.XmlModel.commitTransaction(XmlModel.java:575)
         at oracle.bali.xml.model.XmlModel.commitTransaction(XmlModel.java:555)
         at oracle.bali.xml.model.task.StandardTransactionTask.__commitWrapperTransaction(StandardTransactionTask.java:413)
         at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:203)
         at oracle.bali.xml.model.task.StandardTransactionTask.run(StandardTransactionTask.java:98)
         at oracle.adfdt.jdev.transaction.JDevTransactionManager.fetchUnderTransaction(JDevTransactionManager.java:110)
         at oracle.adfdt.view.common.binding.provider.ADFBaseProvider.<init>(ADFBaseProvider.java:34)
         at oracle.adfdtinternal.view.faces.binding.provider.ADFIteratorModelProvider.<init>(ADFIteratorModelProvider.java:46)
         at oracle.adfdtinternal.view.faces.binding.provider.ADFCustomTableModelProviderFactory.createModelProvider(ADFCustomTableModelProviderFactory.java:64)
         at oracle.adfdtinternal.view.common.binding.datatransfer.ADFBindingsProviderInfo.getData(ADFBindingsProviderInfo.java:40)
         at oracle.adfdtinternal.view.common.binding.datatransfer.BaseADFDataInfo.getData(BaseADFDataInfo.java:35)
         at oracle.adfdt.view.common.binding.utils.ADFBindingUtils.getTransferData(ADFBindingUtils.java:1087)
         at oracle.adfdt.view.common.binding.utils.ADFBindingUtils.getTransferModelProvider(ADFBindingUtils.java:1111)
         at oracle.adfdtinternal.view.common.binding.datatransfer.ADFDocumentFragmentCreatorInfo.createDocumentFragment(ADFDocumentFragmentCreatorInfo.java:63)
         at oracle.adfdtinternal.view.common.binding.operation.CreateOperation.apply(CreateOperation.java:96)
         at oracle.bali.xml.model.datatransfer.operation.PerformOperationAction.actionPerformed(PerformOperationAction.java:39)
         at oracle.bali.xml.share.ActionProxy.actionPerformed(ActionProxy.java:47)
         at oracle.bali.xml.gui.swing.dnd.DropMenuInvoker$CleanupProxy.actionPerformed(DropMenuInvoker.java:235)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

    Hi,
    obviously you try to drag and drop a component to a place where it breaks the document. Make sure the table is added to the JSP body. Have a look at the page sources for existing syntax problems - e.g. missing close elemenents or misplaced elements
    Frank

  • Error message from servlet to jsp

    Hi again,
    I have servlet and check error on this servlet then i would like
    to send error message to jsp page.Every error message will send to
    same JSP page.So JSP must receive message from Servlet.Can i do this?
    Please give me details and some sourcecode.I will appreciate for your helps.

    you could do something like this..
    request.setAttribute("error", stringErrormessage);
    Then in the jsp just do
    <%= request.getAttribute("error") %>
    That will print an errormessage.
    Basically, by setting anything on the request and then redirecting to that page you cn display it...
    //Johan

  • Interrmittant dispaly of error message on JSP Page

    Hi ,
    I am developing an application using JSP and servlets. I ma having a peculiar issue with it.
    I have few links on a JSP page. When a user clicks on the link, its credentials are verified from database and if he is authorised, he will be taken to corresponding link page. Otherwise an error message is dispalyed on the same JSP page.
    When user is not authorised, an exception is thrown from backend to UI passing an error code. This error code is extracted in UI and error description for this error code is read from a properties file.
    From the servlet I use send.redirect() calls to redirect to the url with error code concatenated at the end of the url.
    It is something like this
    try {
    if(validUser)
    //do stuff
    response.sendRedirect("abc/xyzServlet");
    } catch(Exception ex) {
    errid=ex.getErrid();
    response.sendRedirect("abc/MainPageServlet?errid=" + errid);
    }In the MainPageServlet, i read error properties file and display error desc for that error id.
    The problem I am facing is that when an unauthorised user clicks on link repeatedly, he sees the error message intermittently.
    But the error id could be seen on the page url appended.
    Sometimes I also see IllegalStateException in the logs.
    I am using WebSphere server to deploy the application.
    Please help me on this, I have spent much time on this and haven't got a clue. Any pointers will be useful.
    Thank You,
    Priyanshu.
    Edited by: galapagos on Feb 28, 2008 10:43 PM
    Edited by: galapagos on Feb 28, 2008 10:44 PM

    I've tried this and the message still comes up all the time. Have also tried resetting and this doesn't work either. The message appears whether or not it is connected to an accessory (eg speakers). Any further ideas?

  • Simple JSP gives Error Message

    The following is a simple welcome.jsp file that I am trying to run on a local J2EE sever. As you can see it tries to import classes one being the FaqCategories.class which is located in the folder Ch03 of the WEB-INF directory. When I call the page up on the browser It gives me that it does not recognize the   FaqCategories class and gives an associative error message.   I am wondering why(Is the import statement wrong? Did I put the class in the wrong directory? Etc... I followed everything the book told me to a que and I still received an error.     <&@ page errorPage="/WEB-INF/errorPage.jsp" import="java.util.Iterator,Ch03.FaqCategories" %>   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">  <html> <head> <title>Java FAQ Welcome Page</title> </head>  <body> <h1>Java FAQ Welcome Page</h1> Welcome to the Java FAQ  <%! FaqCategories faqs = new FaqCategories(); %> Click a link below for answers to the given topic. <% Iterator categories = faqs.getAllCategories(); while(categories.hasNext()) { String category = (String) categories.next(); %> <a href="<%= replaceUnderscore(category) %>.jsp"><%= category
    %></a> <% } %> <%@ include file="/WEB-INF/footer.jspf" %> </body> </html>  <%! public String replaceUnderscore(String s) { return s.replace(' ','_'); } %>

    Iterator categories = faqs.getAllCategories();I think faqs.getAllCategories() seems like a method that returns a Collection class.
    should that be replaced by faqs.getAllCategories().iterator()?
    I think you should post your stacktrace.

  • Get response message in JSP error page

    Hi,
    Here's a simple one for someone. I HAVE been searching everywhere for the answer but its one of those things I just cant seem to find.
    If I call response.sendError(SC_FORBIDDEN, "Invalid roles"); from a servlet or filter, how can I retrieve the message "Invalid roles" in my JSP error page? (which I have mapped to 403 errors in web.xml).
    Its so simple yet I cannot figure out how to do it.
    Thanks in advance,
    Robert.

    I tried but had no luck. Below is my JSPDYNPAGE code...
    <%@ page import="javax.servlet.http.HttpServletResponse" %>
    <%@ page import="com.sapportals.portal.prt.component.IPortalComponentRequest,com.sapportals.portal.prt.component.IPortalComponentResponse"%>
    <HTML>
         <head>
         </head>
         <body>
    <%
    IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
    HttpServletResponse servletResponse = request.getServletResponse(true);esss
    servletResponse.setStatus(500);
    %>
              </body>
         </HTML>
    It is not working showing portal run time error

  • Error Message When Running A JSP?

    I have been trying to run an example JSP using Apache Tomcat 3.0 and have been recieving the following error message can anyone tell me why this is?
    Error: 500
    Location: /coreservlets/jspages/date.jsp
    Internal Servlet Error:
    javax.servlet.ServletException: sun/tools/javac/Main
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:484)
    Root cause:
    java.lang.NoClassDefFoundError: sun/tools/javac/Main
         at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
         at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
         at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:484)
    Any help very much appreciated.
    Stu.

    This looks like a problem with environment variables being set wrong. Make sure your JAVA_HOME variable is set to C:\jdk1.4.0 (or whatever jdk you're using). Also, make sure the bin and lib subdirectories are included in your PATH. TOMCAT_HOME should also be set to the directory containing the webapps folder.

  • Display error message on jsp if there is an exception during pdf generation

    I am displaying pdf from my application and when the pdf document is found, it is displaying properly. Only problem is when the document is not found i want to display the jsp with an error message to the user. I am using IE and IE has a bug that it calls the servlet twice to display pdf. Please refer to this forum and IE bug info.
    http://forum.java.sun.com/thread.jsp?forum=33&thread=302647
    http://support.microsoft.com/default.aspx?scid=kb;EN-US;q293792
    Now during the first call to the Servlet i have set the response ContentType
    response.setContentType("application/pdf");I want to change the content type back tp "text/html" before displaying the jsp with the error message. How should i do that. I tried to change the content type by doing response.setContentType("text/html"); in the servlet. But this is not working. I am still getting the same error. which is a diagol box in Acrobat saying "File does not begin with %PDF~"
    Thanks of your help in advance.

    hey u have retrieved pdf from
    blob object in database
    kindly send me that code ya
    thanks in advance

  • Prompt error message in JSP

    May I know how to prompt an error message in JSP?? can I use alert() as in javascript? what's the proper syntax to do it???

    Just to simplify what is already said: All JSP code, without exception, is executed on the server side, and when the JSP page is shown to the user (client) there is no execution of any JSP CODE, you can only use the information supplied by the JSP code.
    /R

  • Trying to download Photoshop CS3 for Mac but keep getting error message  (HTTP ERROR: 404 /support/downloads/dlm/main.jsp, RequestURI=/support/downloads/dlm/main.jsp)

    Trying to download Photoshop CS3 for Mac but keep getting error message  (HTTP ERROR: 404 /support/downloads/dlm/main.jsp, RequestURI=/support/downloads/dlm/main.jsp)

    Jessicawaters are you trying to download from Download CS3 products?  If so then please try a different web browser.

Maybe you are looking for

  • Can I use Migration Assistant as a tool to move my iphoto library back and forth from my imac to my MacBook Pro?

    I purchased a macbook pro so I can work on my iphoto projects when out of the house. Instead of buying an external and having my iphoto library on that, would I be able to use Migration Assistant to update the iphoto library from macbook pro to imac

  • Special Character appearing as ? through VI editor

    Hi In one of the data conversions I am loading data into the custom table from CSV file. When I am transferring CSV file to Unix to run SQL*Loader then VI editor is showing Japanese characters as "?". Please let me know how to resolve this issue. Tha

  • Statement failing when apostrephe

    Hi, I have a dynamic where clause as below, but it fails when the custname has any apostrephe in between, could anybody help.Thanks. vWhere := ' WHERE ' || rec-cur.ref_table_column ||' = ' || chr(39) || name_in(Custname) || chr(39) ||' '

  • Need reference material on pdf forms

    hi all, I need to develop a pdf form in sap...But i have no knowledge about it..Can u suggest some good link or any reference so that i can have a concept of pdf forms and so that i can start developing one...

  • E 63 no emoticons/smileys

    does anyone knoe if these things (smileys/emoticons) work on the e63 as get text message with just the shortcuts for them but not the actual picture is there a wat to switch them on thanks for any help Solved! Go to Solution.