Problem Running a jsp page in JDeveloper 9i

I have an application in JDeveloper 9i. i have compiled the application and when i right click one of the jsp's and say Run, it is not working and give the following message in the console: The system cannot execute the specified program.
I don't know what to do now. Please help me out to get out of this situation. I am new to JDeveloper.
- DeveloperBujji.

Does your jar file include the libraries that you are "importing" into your code?
(Maybe javax.print.*)

Similar Messages

  • StackOverflowError - when trying to run a JSP Page in JDeveloper

    Hello all,
    I am experiencing an error when I try to run a .jspx page in JDeveloper (10.1.3.3). Below is the error I am getting. Any idea where I need to look to resolve this memory issue?
    {color:#ff0000}INFO: Unable to dispatch JSP Page : Exception:oracle.jsp.provider.JspCompileException: {color}
    {color:#ff0000}Errors compiling:E:\JDeveloper\jdevstudio10133\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\application-deployments\current-workspace-app\Veeva-ViewController-webapp\persistence\_pages\_mdssys\_viewcontroller\_public__html\_Tours_jspx.java{color}{noformat}*{color:#ff0000}Fatal error: Cannot find class java/lang/StackOverflowError
    Warning : Not able to reserve 2048M memory for the heap. Heap reduced to 944M
    {color}*
    {color:#000000}Thank you kindly,
    Christine{color}{noformat}

    I don't see any errors or warnings in the Structure. I am going through the Veeva Vacations example from the WebCenter Demos and Samples page (http://www.oracle.com/technology/products/webcenter/owcs_10132_demos.html). There is nothing complex about the page it just contains an ADF Read-only table based on a Database table. I was able to run it successfully and then another time I ran it I got that error. It seems to me as though it is a memory issue as opposed to a page error. I am just not sure where to look to allocate more memory.

  • Please help.  Got TopLink working, but now I can't run a JSP page

    I am using JDeveloper 9.0.3.
    I got TopLink working successfully. Meaning I can access the DB using my mapped TopLink classes from my java code in JDeveloper.
    However, now I can't even run the default .jsp page.
    I am getting the error:
    Error instantiating application at file:/C:/LBIT/LBIT-oc4j-app.xml: Error parsing data-sources config at file:/C:/LBIT/LBIT-data-sources.xml: Fatal error at line 0 offset 0 in file:/C:/LBIT/LBIT-data-sources.xml: The encoding "windows-1252" is not supported.
    If I go change the "LBIT-data-sources.xml" file to "ISO-8859-1," as soon as I run the .jsp page (from JDeveloper) the "LBIT-data-sources.xml" file gets overwritten with a new one that contains the "windows-1252" encoding line again.
    What can I do to fix this???
    I know someone else has run into this problem!!!
    Please help. Thanks so much.
    Andy

    You could change the encoding by doing the following.
    Stop Embedded OC4J Server (Run | Terminate | Embedded OC4J Server)
    Tools | Preferences
    Select Environment
    Change the Encoding to ISO-xxxxx
    Click OK
    Run your JSP now.
    Atleast this should fix encoding generated into data-sources.xml
    raghu
    JDev Team

  • 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

  • Error on page load when trying to run the jsp appl. through JDeveloper

    I created an JSP application using Oracle JDeveloper 9.0.5.2 and Business Intelligence beans 9.0.5. and i am using Embeded oc4j Server for running the application from the JDeveloper Environment.
    All the presentations are existed in the Local Catalog of the application...
    Configuration file of the Application is :
    (Project1OLAPConfig4.xml):
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <!--This file is generated by the BI Designer object and specifies configuration
    settings for your application. These configuration settings do not affect
    the BI Designer object. You can specify the name of this file in the constructor
    of the BISession object for the application.
    If you want to customize this file, then choose Settings from the
    right-mouse menu of the associated BI Designer object. Or you can right click on the
    configuration file and choose Settings. You can choose whether to keep the
    configurattion settings the same for both design and runtime, which is the
    default, or to use different settings for design and runtime.
    Refer to the Help system for more information on the configuration file.
    Current Settings:
    In Sync with Designer
    -->
    <BIConfig>
    <BISession DeploymentOption="LOCAL">
    <BIUser Username="Local User"/>
    <Debug Mode="ERROR"/>
    </BISession>
    <PersistenceConnection PCID="pc1" PersistenceType="FILE" RootFolder="bidefs/Project1BIDesigner4/" BootConnection="true"/>
    <OLAPConnection OCID="oc1" ServerType="ROLAP" OLAPConnectionName="OLAPConnection1" HostName="twdpc232" SID="encore" PortNumber="1521" JdbcDriverType="thin">
    <DADFile Filename="/Project1OLAPConfig4OLAP.dad" Obfuscated="false"/>
    </OLAPConnection>
    <MetadataManager>
    <PersistenceConnection PCREFID="pc1"/>
    <OLAPConnection OCREFID="oc1"/>
    </MetadataManager>
    </BIConfig>
    Project1OLAPConfig4OLAP.dad :
    Username:CS_OLAP
    Password:CS_OLAP
    JSP page is : (biuntitled1.jsp)
    <%@ taglib uri="http://xmlns.oracle.com/bibeans/jsp" prefix="orabi" %>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <%@ page errorPage="cabo/bi/jsp/error.jsp" %>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <!-- Start synchronization of the BI tags -->
    <% synchronized(session){ %>
    <orabi:BIThinSession id="bisession1" configuration="/Project1OLAPConfig4.xml" >
    <!-- Business Intelligence definition tags here -->
    <orabi:Presentation location="Presentation1" id="biuntitled1_pres1"/>
    </orabi:BIThinSession>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>
    BI Beans JSP Page
    </title>
    </head>
    <orabi:BIBody>
    <form name="BIForm" method="POST" action="biuntitled1.jsp" >
    <orabi:InitBITags parentForm="BIForm"/>
    <!-- Insert your Business Intelligence tags here -->
    <orabi:Render targetId="biuntitled1_pres1" parentForm="BIForm"/>
    <p/>
    <p/>
    <!-- The InsertHiddenFields tag adds state fields to the parent form tag -->
    <orabi:InsertHiddenFields parentForm="BIForm" biThinSessionId="bisession1" />
    </form>
    </orabi:BIBody>
    </html>
    <% } %>
    <!-- End synchronization of the BI tags -->
    The Errors coming when loading the page are:
    Line : 25
    Char : 76
    Error : ObjectExpected
    Code : 0
    URL : http://172.29.52.77:8989/Workspace1-Project1-context-root/biuntitled1.jsp
    The same error is coming in the (line, char) combination are : (25,1);(30,1);(21,1);
    Output of bicheckconfig :
    BI Beans Diagnostics(v1.0.2.0) 8/23/04
    ===============================================================================
    JDEV_ORACLE_HOME .......................... = c:\JDeveloper
    JAVA_HOME ................................. = C:\j2sdk1.4.2_03
    JDeveloper version ........................ = 9.0.5.2.1618
    BI Beans release description .............. = BI Beans 10.1.2 Production Release
    BI Beans component number ................. = 10.1.2.5.0
    BI Beans internal version ................. = 3.2.0.37.4
    Connect to database ....................... = Successful
    JDBC driver version ....................... = 9.2.0.3.0
    JDBC JAR file location .................... = C:\JDeveloper\jdbc\lib
    Database version .......................... = 9.2.0.5.0
    OLAP Catalog version ...................... = 9.2.0.5.0
    OLAP AW Engine version .................... = 9.2.0.5.0
    OLAP API Server version ................... = 9.2.0.5.0
    BI Beans Catalog version .................. = N/A; not installed in CS_OLAP
    OLAP API JAR file version ................. = "10.1.0.3.0"
    OLAP API JAR file location ................ = c:\JDeveloper\jdev\lib\ext
    Load OLAP API metadata .................... = Successful
    Number of metadata folders ................ = 2
    Number of metadata measures ............... = 24
    Number of metadata dimensions ............. = 5
    Metadata output location .................. = C:\JDeveloper\bibeans\bi_checkconfig\bi_metadata.txt
    To interpret this output, see the "Displaying Information about your Oracle9i Business Intelligence Beans Client Configuration" technical note, whose file name is bi_checkconfig_tn.html
    These diagnostics are captured in: C:\JDeveloper\bibeans\bi_checkconfig\bi_checkconfig.xml
    Can any body help me....
    Thanks
    Bhanu.

    Copy the jdev_home/jlib/redist/uix2_install.zip file to
    jdev_home/jdev/redist folder . It will overwrite an existing uix2_install.zip file.
    Close and open the Jdeveloper IDE. It will prompt you for upgradation of projects. Press OK button in response.
    Now you should be able to run the JSP pages.

  • How to develop and Run .jsp page from Jdeveloper 10g

    Dear All,
    I need to develop one small JSP page using Jdeveloper10g. pls share information How to develop and Run .jsp page from Jdeveloper 10g.
    Thanks in Advance,
    Hanimi.

    Hi Gyan,
    Any Idea how to get DB connection for JSP Pages.
    Our Java guys developed one JSP page for Login page.
    After Log in instead of standard responsibilites page we calling custom jsp page, For getting DB connection they defined one properties file and hard coded DB details on that file and calling, but client is not accepting hard coding.
    Pls give any idea for getting DB connection directly in JSP pages.
    Hanimi.

  • Urgent.....Error while running a jsp report from Jdeveloper

    Hi,
    I am getting following error while running a jsp report from Jdeveloper. I am using version 10.1.2.1.0. The same report is working fine when I am running it from report builder. ( Both these tools were installed using Oracle Developer Suite 10g version 10.1.2). I did search in oracle discussion forums and google, but I could not arrive at a resolution of error. Any help in resolving this issue would be grateful.
    Error details:
    Page url : http://<hostipaddress>:8988/Reports-reportproject-context-root/MyReport.jsp
    Reports Error Page
    Wed Oct 17 20:03:22 IST 2007
    javax.servlet.jsp.JspException: REP-51002: Bind to Reports Server myreportserver failed
    javax.servlet.jsp.JspException: REP-51002: Bind to Reports Server myreportserver failed
         at oracle.reports.jsp.ReportTag.doStartTag(ReportTag.java:464)
         at MyReport.jspService(MyReport.jsp:4)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:57)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    Could anyone help me out in resolving this issue.
    Thanks
    Siva...

    Hi,
    I posted this message in jdeveloper forum yesterday, but there was no response. So I thought of posting it in this forum to check my luck.
    Thanks
    Siva...

  • Urgent...Error while running a jsp report in Jdeveloper

    Hi,
    I am getting following error while running a jsp report from Jdeveloper. I am using version 10.1.2.1.0. The same report is working fine when I am running it from report builder. ( Both these tools were installed using Oracle Developer Suite 10g version 10.1.2). I did search in oracle discussion forums and google, but I could not arrive at a resolution of error. Any help in resolving this issue would be grateful.
    Error details:
    Page url : http://<hostipaddress>:8988/Reports-reportproject-context-root/MyReport.jsp
    Reports Error Page
    Wed Oct 17 20:03:22 IST 2007
    javax.servlet.jsp.JspException: REP-51002: Bind to Reports Server myreportserver failed
    javax.servlet.jsp.JspException: REP-51002: Bind to Reports Server myreportserver failed
    at oracle.reports.jsp.ReportTag.doStartTag(ReportTag.java:464)
    at MyReport.jspService(MyReport.jsp:4)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:57)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)
    Could anyone help me out in resolving this issue.
    Thanks
    Siva...

    Hi,
    I posted this message in jdeveloper forum yesterday, but there was no response. So I thought of posting it in this forum to check my luck.
    Thanks
    Siva...

  • Not able execute or run a OAF page from JDeveloper

    I am trying to run an OAF page in JDeveloper. I am getting the below error message.
    You are trying to access a page that is no longer active.
    - The referring page may have come from a previous session. Please select Home to proceed.
    All Framework Pages should have a Function defined on the page when MAC Lite is enabled and the URL MAC Check fails.
    I thought if I run the JRAD file directly, JDeveloper was not able to create the session. So I tried running the OAF tutorial's "test_fwktutorial.jsp".
    JSP page runs fine. When I click "Hello world" or other link which invokes an JRAD page then I am getting the above error.
    Can anybody help me.
    I also checked the project settings.
    Project Settings -> Common -> Oracle Applications
    1) MDS XML path ("C:\oracle\JDeveloper\JDev-CU2patch\jdevhome\jdev\myprojects")
    2) MDS XML path from Libraries ("C:\oracle\JDeveloper\JDev-CU2patch\jdevbin\jdev\oamdsxml\fwk").
    Thanks
    Balamohan

    Got the solution for this from the thread.
    You are trying to access a page that is no longer active
    Here is the solution:
    Go to Jdeveloper>Tools>Preferences>EmbeddedOC4J>Select Default Local IP Address radio button>OK
    Thanks
    Balamohan

  • Error while running a jsp page : "jasper run time error"

    hii
    I'm facing trouble while running some jsp page . the error is as follows:
    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
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         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)
    root cause
    Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
         org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
         org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
         org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         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.28 logs.
    Apache Tomcat/5.0.28
    The set up in my system (path set up is as follows):
    Catalina home: C:\ apache software foundation\Tomcat 5.0
    Classpath: %java_home%;C:\j2sdk1.4.2_03\bin;
    Javahome: C:\ j2sdk1.4.2_03\jre;
    path: C:\ j2sdk1.4.2_03\bin
    <there are other variables available in path, along with that I have added the j2sdk1.4.2_03\bin in path".
    So if u have any way out for it please let me know.

    I think you only need to add: c:\j2sdk1.4.2_01
    you have specified jre on the end of your path, it is not the jre that is required, but the jdk.
    If you are using startup.bat and shutdown.bat (or .sh on Linux) you can amend the files with a text editor (open the startup.bat in notepad), like so:
    @echo off
    set JAVA_HOME=c:\j2sdk1.4.2_01
    if "%OS%" == "Windows_NT" setlocal
    I this will start Tomcat with the correct settings, regardless of your environment settings.

  • I'm trying to run a .jsp page and all I get is the following error. Thoughts?

    Running Coldfusion 8 / JRun 4 updater 7 / Coldfusion 8 hotfix
    2.
    I'm trying to run a .jsp page and all I get is the following
    error. Thoughts?
    Could not invoke Java compiler, please make sure jikesw is in
    I:\JRun4/bin or put a JDK bin directory in your path.
    jrunx.compiler.JavaCompiler$NoCompilerFoundException: Could
    not invoke Java compiler, please make sure jikesw is in
    I:\JRun4/bin or put a JDK bin directory in your path.
    at
    jrunx.compiler.JavaCompiler.outProcessCompile(JavaCompiler.java:474)
    at
    jrunx.compiler.JavaCompiler.compile(JavaCompiler.java:132)
    at
    jrunx.compiler.JavaCompiler.compile(JavaCompiler.java:100)
    at jrun.jsp.Translator.compilePage(Translator.java:176)
    at jrun.jsp.Translator.translate(Translator.java:254)
    at jrun.jsp.Translator.translate(Translator.java:101)
    at jrun.jsp.JSPEngine.translateJSP(JSPEngine.java:707)
    at jrun.jsp.JSPServlet.translate(JSPServlet.java:125)
    at jrun.jsp.JSPServlet.service(JSPServlet.java:113)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

    You're right, that ws another fix I tried. There is no fix fo
    rthe issue described, but it still seems like an old issue. My
    class paths are short. Here is my jvm.config (pretty standard):
    # VM configuration
    # Where to find JVM, if {java.home}/jre exists then that JVM
    is used
    # if not then it must be the path to the JRE itself
    java.home=I:/JRun4/jre
    # If no java.home is specified a VM is located by looking in
    these places in this
    # order:
    # 1) bin directory for java.dll (windows) or
    lib/<ARCH>/libjava.so (unix)
    # 2) ../jre
    # 3) registry (windows only)
    # 4) JAVA_HOME env var plus jre (ie $JAVA_HOME/jre)
    # Arguments to VM
    java.args=-server -Xmx1000m -Dsun.io.useCanonCaches=false
    -XX:MaxPermSize=256m -XX:+UseParallelGC
    -Dcoldfusion.rootDir={application.home}/
    # commas will be converted to platform specific separator and
    the result will be passed
    # as -Djava.ext.dirs= to the VM
    java.ext.dirs={jre.home}/lib/ext
    # where to find shared libraries
    java.library.path={application.home}/lib,{application.home}/servers/cfusion/cfusion-ear/cf usion-war/WEB-INF/cfusion/lib,{application.home}/servers/cfusion/cfusion-ear/cfusion-war/W EB-INF/cfusion/jintegra/bin,{application.home}/servers/cfusion/cfusion-ear/cfusion-war/WEB -INF/cfusion/jintegra/bin/international
    system.path.first=false
    # set the current working directory - useful for Windows to
    control
    # the default search path used when loading DLLs since it
    comes
    # before system directory, windows directory and PATH
    java.user.dir={application.home}/../lib
    # JVM classpath
    java.class.path={application.home}/servers/lib,{application.home}/lib

  • Running my jsp page

    When I try to run my jsp page I get the following exception. Why is this. My code for the jsp file is below this error. Thanks.
    A Servlet Exception Has Occurred
    org.apache.jasper.JasperException: Unable to compile class for JSPC:\Tomcat\jakarta-tomcat-4.0-b5\.\work\localhost\examples\jsp\dbaccess\dbaccess3_jsp.java:14: Type expected.
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    ^
    1 error
    ----------------- CODE ------------------
    <%! Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); %>
    <%@ page errorPage="error.jsp" language="java" import="java.sql.*" %>
    <html>
    <body bgcolor=#000000 text=#87CEFA>
    <center>JSP Page that accesses a database and prints the results</center>
    Test!!!
    <% Connection con = DriverManager.getConnection("jdbc:odbc://url:port/oracle", "username", "passwd"); %>
    <% Statement statement = con.createStatement();
    ResultSet resultSet = statement.executeQuery("SELECT * FROM oracle"); %>
    <P> The results are:
    </P>
    <UL>
    <% while (resultSet.next()) { %>
    <LI><% String myData = resultSet.getString(); %></LI>
         <% System.out.println(myData); %>
    <% } %>
    </UL>
    </body>
    </html>

    in case connecting to oracle database u have to have the drivers or the classes12.zip file in u'r classpath.
    in case of any other database try specifying the class path correctly.
    hopw this helps.

  • How to run a jsp page

    hello to all of u
    i m bit comfortable with SERVLET and please tell me that how to run a JSP page.i m using TOMCAT.
    someplace it is written that " write the program ,save under the root of tomcat i.e in my system it is tomcat 4.1 and to store in tomcat4.1\helloworld.jsp ,,, and then after start the server write in the url --:
    http://localhost:8080/hello.jsp.
    but it is giving error while running.please tell me the procedure.
    thank you
    bye

    Why oh WHY do you want to fiddle with the server.xml file?
    You don't need to.
    Under tomcat is a directory called "Webapps"
    This is where you put your web applications.
    You will see there is an existing one there called ROOT - which funnily enough is the root one used for Tomcat.
    If you put your hello.jsp in the ROOT directory, http://localhost:8080/hello.jsp will work.
    However it is not recommended to use the ROOT directory. Make your own one.
    Create a new directory in the "Webapps" directory eg "test"
    Put your jsps in here.
    under test create a directory called "WEB-INF"
    Copy the web.xml file from [TOMCAT_HOME]/webapps/ROOT/web-inf into the new web-inf directory.
    Now go to http://localhost:8080/test/hello.jsp
    Cheers,
    evnafets

  • How to run a jsp page or html page through DOS-PROMPT in java

    Hi,
    I want to run a jsp page directly from my console.
    and I want to pass some parameters to jsp page from console i.e. through args.
    thanks in advance,
    vjoy

    start file:///myjsp.jsp?boo=hoo
    should work

  • Designing run time jsp page

    hello all,
    I want to design a run time jsp page.
    how should i do it? using servlet or jsp has this capablity.
    please give me advice to achieve it effectivly.
    Can yo give me a example also of making runtime controls let say a button or label or textbox on jsp page also.
    Thanks in advance.

    Your terminology and English is really messed up in this message, so sorry if my answer is wrong. Especially the part "design a run time jsp page" makes really no sense.
    If you want to add DOM elements "on the fly", use an ajaxical library like jQuery or adopt an ajaxical JSF component library like RichFaces/Ajax4jsf.

Maybe you are looking for

  • Problem with custom print dialog in Illustrator cs3 on OS X

    Hello Illustrator Support Forum, I am an IT systems administrator and I have a user that has a problem when printing from Illustrator to our Ricoh photocopier.  The problem is that Illustrator uses its own custom print dialog and not the default mac

  • Integration with Hibernate and KODO

    I'm aware that Coherence has some optimisation for distributed queries with indices etc, but are Hibernate/Kodo able to benefit from this? If you have any statistics or white papers covering query performance and optimisation between Hibernate and Ko

  • IOS Group Messaging not working when Android phones are involved

    Group Messaging not working for me when there are both Iphones and Androids involved. iPhones still using iOS 7 don't seem to be having problems leading me to believe this is an iOS 8 problem. Is there a workaround for this yet, or is this a legitima

  • Color problem prints from camera only

    I have a Sony DSC H2. It shoots great photos. When I import them into iPhoto, they look great, and they look terrific as desktop backgrounds and computer slideshows. When I print them, using Canon i960, the photos are darker, more saturated and not s

  • Open dialog "support" part do not show iTunes/iPhoto

    Hello. Impossible to find this anywhere on internet I reinstalled Lion on my computer, then I reimported from TimeMachine (within the installation) only a small part of my user folder. Mostly all preferences and settings, but not the datas because it