Help running a simple jsp file,Tomcat 5.0.16

Hi,
This question may be addressed many many times,but do reply.
I have a Win xp operating system
Installed Tomcat 5.0.16 in it.
Next the directory structure
PS : The sampleapp directory is outside the tomcat installation directory.
E:/sampleapp
| |
ROOT WEB-INF
|
classes
|
<package1><structure> .class files (for servlet works fine!!!!)
in the WEB-INF,there is the web.xml,then sourcefiles<dir> and the lib directory which is empty.
Now the servlet files work fine.........
I have placed my MyJsp.jsp file in the above mentioned ROOT directory.
I have not done any thing with the <TOMCAT_HOME>/conf/server.xml file
and the web.xml which I have written.
When I give the following URI
http://localhost:8080/sampleapp/MyJsp.jsp,
I get the HTTP status 404- /MyJsp.jsp
description: The requested resource (/MyJsp.jsp) is not available.
Hoping that I have defined the problem specifically.Kindly show some light on this.
Thanks
AS

Nevermind. I just found the answer. For the record, there are two ways in getting JSPs to work:
1. Precompiling the JSPs and modifying your webapp's web.xml file with the XML fragment generated in YourWebApp/web/WEB-INF/generated_web.xml;
2. Not precompiling the JSPs, but simply letting tomcat compile it on the fly on first access.
PRECOMPILATION METHOD
Go to http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html. Copy-and-paste the ant script under the section "Web Application Compilation" into a file called compile.xml. For me, I save it in ~/development/compile.xml. Then compile the JSPs using the command (all in a single line):
$ANT_HOME/ant -file <PATH_TO_COMPILE.XML> -Dtomcat.home=<$TOMCAT_HOME> -Dwebapp.path=<$WEBAPP_PATH>
In my case, I cd into the directory where my app resides:
cd ~/development/HelloWorld
and then I type:
ant -file ~/development/compile.xml -Dtomcat.home=/var/tomcat5 -Dwebapp.path=.
(Note the trailing dot since my current directory is my webapp's directory itself. Also, in my case, my shell's PATH contains the path to the ant executable, so I just type 'ant' directly.)
Open the file ~/development/HelloWorld/web/WEB-INF/generated_web.xml and follow the instructions in that auto-generated file, which is: "Place this fragment in the web.xml before all icon, display-name, description, distributable, and context-param elements."
The web.xml referred to above is YOUR web.xml. In my case, it is the one in ~/development/HelloWorld/web/WEB-INF/web.xml
When ready to deploy, type:
ant dist
as usual. Deploy the .war file in the dist directory as you normally would. In my case, I do:
rm -rf $CATALINA_HOME/webapps/hello* (removes my HelloWorld webapp directory and its war file)
cp ~/development/HelloWorld/dist/hello.war $CATALINA_HOME/webapps
and wait for tomcat to unravel the war file. I can then access the JSP page based on whatever the generated_web.xml had specified. In my case, it would be http://localhost:8080/hello/sample.jsp
NON-PRECOMPILATION METHOD
Copy tools.jar from the Java JDK into tomcat's common/lib. (I found this only in the error message in tomcat's log file!! Didn't find it anywhere else!!). Do this one time only, then restart tomcat:
cp $JAVA_HOME/lib/tools.jar $CATALINA_HOME/common/lib
Restart tomcat.
Deploy your webapp as usual which will include your JSP files stored under your webapp's 'web' directory. No precompilation of JSPs is required. Then access your JSP pages such as http://localhost:8080/HelloWorld/my-jsp-page.jsp and tomcat will compile it on the fly on first access. The disadvantage is that there will be a slight delay on first access.
[Note:  I am putting all this down for the record, because it took me MANY HOURS to figure all this out as the info on how to do this is not found clearly in one place!!  Hope this helps others.]
My next step is to incorporate the contents of compile.xml as mentioned above, into my regular build.xml file.

Similar Messages

  • How run the simple .jsp file on 9 i as application server?

    hi,
    i developed simple .jsp file on notepad,the same .jsp file to run in 9ias server?
    how can any one help me or send steps how to do?
    jpullareddy

    Hi,
    Try out these samples...
    http://otn.oracle.com/sample_code/tech/java/jsp/htdocs/jspdemo/OjspReadme.html
    Thanks,
    Rajat

  • Help regarding a simple JSP file and servlet file

    Hi all,
    I am trying to develop a web based application using Tomca 5.0.16.I wanted to get to know how a simple jsp page could access a servlet.It would be really very beneficial if if any one can give me a sample code that does the interactions,I could run it and understand it,would help me for further development.
    Any help would be appreciated
    Thanks
    AS

    I think it depends on how you want to access the servlet.
    You can forward or redirect from the JSP page to the servlet, thus making it like you went to the servlet directly from the browser (except of course, before the forward or redirect, some stuff can be done).
    You can use URLConnection objects to call the servlet, much like the browser does.
    It depends on what you are trying to do.

  • Help running a simple jsp (with struts and core -sun- taglibs)

    Hi, could somebody help me with this simple JSP?
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
         pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
         xmlns:c="http://java.sun.com/jsp/jstl/core"
         xmlns:html="http://struts.apache.org/tags-html">
    <head>
         <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    </head>
    <body>
         <html:text property="text">text</html:text>
         <label>hello</label>
         <c:forEach begin="1" end="5">
              <label>inside</label>
         </c:forEach>
    </body>
    </html>When I run it, the c:forEach tag doesn’t work.
    Output shows “text hello inside” instead of desired “text hello inside inside inside inside inside”
    Any hints will be really appreciated.
    Edited by: 792625 on 03-sep-2010 0:15

    Add the JSTL Core tag library.
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>

  • How to run the simple jsp on oracle 9ias application server?

    hi,
    how to run the simple jsp application jst disply the date on oracle 9ias application server?
    can any expline the steps how to do it?
    thanks
    pullareddy

    No, you need the Reports Server (as part of the Application Server or Weblogic, depending on your version).
    I try to save the report, it's saved as .jspThat depends. You can save it as a .rdf file too (so called Paper Layout). I think this option is used more often.

  • How to run/build the JSP file using Eclipse

    Hello,
    I want to build a new project for running the jsp file in eclipse.
    Can you help me in doing that?
    with some structure format?
    where to create web.xml file
    how to configure that fiel with our eclipse java poject?
    like that...
    Thanks,
    Soorya

    On New Project creation, choose 'Dynamic Web Project'. Then the structure will be created for you.

  • Help for documentation about  jsp and tomcat

    Hello
    This is realy very urgent for me!!Does anuone can help me.
    There is my problem .I nead books (hypperlink) for jsp or tomcat.
    who made it why and how does it looks.I am writeing documenation for my project and i have to finish it very soon.I found some tutorials btu it is noy enough if you know for something better i would be vry gratefull.
    By

    Hi,
    I agree, the basic documentation at the jakarta site is good, but needs a little polishing/updating.
    Use google to do a search, and wade through loads of stuff before coming up with the answers, or this site is pretty good too!!!!!
    Unfortunately, all the answers are not always forthcoming until you know which questions to ask (or the relevant words to enter into a search engine).
    best
    kev

  • Help for not recompiling .jsp files

    Hi,
    We are using sun web server 7.0. We have deployed one application which contains few jsp files.
    everytime when we access login.jsp, it creates login_jsp.clss file in /generated folder..
    if we delete login.jsp file and change settings in web.xml for login_jsp.class and try to access then it shows ,
    error : page cannot be found and i found class file deleted from that path.
    If i try the same in tomcat server, it works fine. so need to know the same settings for sun web server 7.
    Is there any setting available for sun web server admin console for the same...
    Thanks
    Rushi

    check disable dynamic reloading
    http://docs.sun.com/app/docs/doc/819-2634/abxfs?a=view
    also , u can check out our tuning guide
    http://docs.sun.com/app/docs/doc/819-2635/abyed?a=view
    pl. provide feedback on these guides within our product docs wiki
    http://wikis.sun.com/display/WebServer/Sun+Java+System+Web+Server

  • OA Framework error when running the test_fwktutorial.jsp file? Please Help?

    Exception Details.
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: SYSTEM-ERROR. Tokens: MESSAGE = Io exception: The Network Adapter could not establish the connection; (Could not lookup message because there is no database connection)
         at oracle.apps.fnd.framework.OACommonUtils.processAOLJErrorStack(OACommonUtils.java:884)
         at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:219)
         at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
         at test_fwktutorial._jspService(test_fwktutorial.jsp:45)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: Io exception: The Network Adapter could not establish the connection; (Could not lookup message because there is no database connection)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:862)
         at oracle.apps.fnd.framework.OACommonUtils.processAOLJErrorStack(OACommonUtils.java:876)
         at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:219)
         at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
         at test_fwktutorial._jspService(test_fwktutorial.jsp:45)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
         at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:3678)
         at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:352)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:371)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:551)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:351)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:140)
         at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:753)
         at oracle.apps.fnd.security.AppsConnectionManager.localAppsConnect(AppsConnectionManager.java:913)
         at oracle.apps.fnd.security.AppsConnectionManager.localAppsConnect(AppsConnectionManager.java:805)
         at oracle.apps.fnd.security.AppsConnectionManager.localAppsConnect(AppsConnectionManager.java:794)
         at oracle.apps.fnd.security.AppsConnectionManager.makeGuestConnection(AppsConnectionManager.java:555)
         at oracle.apps.fnd.security.DBConnObj.<init>(DBConnObj.java:206)
         at sun.reflect.GeneratedConstructorAccessor9.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at oracle.apps.fnd.common.Pool.createObject(Pool.java:1187)
         at oracle.apps.fnd.common.Pool.borrowObject(Pool.java:946)
         at oracle.apps.fnd.security.DBConnObjPool.borrowObject(DBConnObjPool.java:661)
         at oracle.apps.fnd.security.AppsConnectionManager.borrowConnection(AppsConnectionManager.java:211)
         at oracle.apps.fnd.common.Context.borrowConnection(Context.java:1671)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnectionFinal(AppsContext.java:2363)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnection(AppsContext.java:2301)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2172)
         at oracle.apps.fnd.common.AppsContext.getLocalJDBCConnection(AppsContext.java:2553)
         at oracle.apps.fnd.common.AppsContext.getLocalJDBCConnection(AppsContext.java:2486)
         at oracle.apps.fnd.common.AppsLogHelper.getConnection(AppsLogHelper.java:55)
         at oracle.apps.fnd.common.logging.DebugEventManager.getLogConnection(DebugEventManager.java:1418)
         at oracle.apps.fnd.common.logging.DebugEventManager.getLogConnection(DebugEventManager.java:1351)
         at oracle.apps.fnd.common.logging.JDBCHandler.publish(JDBCHandler.java:141)
         at oracle.apps.fnd.common.logging.DebugEventManager.log(DebugEventManager.java:723)
         at oracle.apps.fnd.common.AppsLog.writeCanonical(AppsLog.java:1723)
         at oracle.apps.fnd.common.AppsLog.write(AppsLog.java:1440)
         at oracle.apps.fnd.common.AppsLog.write(AppsLog.java:1350)
         at oracle.apps.fnd.security.ConnectionManager.log(ConnectionManager.java:1037)
         at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:760)
         at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:704)
         at oracle.apps.fnd.security.AppsConnectionManager.makeGwyuidConn(AppsConnectionManager.java:609)
         at oracle.apps.fnd.security.AppsConnectionManager.getGwyuidConn(AppsConnectionManager.java:681)
         at oracle.apps.fnd.security.AppsConnectionManager.makeGuestConnection(AppsConnectionManager.java:552)
         at oracle.apps.fnd.security.DBConnObj.<init>(DBConnObj.java:206)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at oracle.apps.fnd.common.Pool.createObject(Pool.java:1187)
         at oracle.apps.fnd.common.Pool.borrowObject(Pool.java:946)
         at oracle.apps.fnd.security.DBConnObjPool.borrowObject(DBConnObjPool.java:661)
         at oracle.apps.fnd.common.Pool.borrowObject(Pool.java:1049)
         at oracle.apps.fnd.security.DBConnObjPool.borrowObject(DBConnObjPool.java:661)
         at oracle.apps.fnd.common.Pool.borrowObject(Pool.java:1049)
         at oracle.apps.fnd.security.DBConnObjPool.borrowObject(DBConnObjPool.java:661)
         at oracle.apps.fnd.security.AppsConnectionManager.borrowConnection(AppsConnectionManager.java:211)
         at oracle.apps.fnd.common.Context.borrowConnection(Context.java:1671)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnectionFinal(AppsContext.java:2363)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnection(AppsContext.java:2301)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2172)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1986)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1890)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1907)
         at oracle.apps.fnd.common.Context.getJDBCConnection(Context.java:1431)
         at oracle.apps.fnd.framework.CreateIcxSession.getConnection(CreateIcxSession.java:545)
         at oracle.apps.fnd.framework.CreateIcxSession.getIntValue(CreateIcxSession.java:346)
         at oracle.apps.fnd.framework.CreateIcxSession.getUserID(CreateIcxSession.java:323)
         at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:148)
         at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
         at test_fwktutorial._jspService(test_fwktutorial.jsp:45)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: Io exception: The Network Adapter could not establish the connection; (Could not lookup message because there is no database connection)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:862)
         at oracle.apps.fnd.framework.OACommonUtils.processAOLJErrorStack(OACommonUtils.java:876)
         at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:219)
         at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
         at test_fwktutorial._jspService(test_fwktutorial.jsp:45)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
         at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:3678)
         at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:352)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:371)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:551)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:351)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:140)
         at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:753)
         at oracle.apps.fnd.security.AppsConnectionManager.localAppsConnect(AppsConnectionManager.java:913)
         at oracle.apps.fnd.security.AppsConnectionManager.localAppsConnect(AppsConnectionManager.java:805)
         at oracle.apps.fnd.security.AppsConnectionManager.localAppsConnect(AppsConnectionManager.java:794)
         at oracle.apps.fnd.security.AppsConnectionManager.makeGuestConnection(AppsConnectionManager.java:555)
         at oracle.apps.fnd.security.DBConnObj.<init>(DBConnObj.java:206)
         at sun.reflect.GeneratedConstructorAccessor9.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at oracle.apps.fnd.common.Pool.createObject(Pool.java:1187)
         at oracle.apps.fnd.common.Pool.borrowObject(Pool.java:946)
         at oracle.apps.fnd.security.DBConnObjPool.borrowObject(DBConnObjPool.java:661)
         at oracle.apps.fnd.security.AppsConnectionManager.borrowConnection(AppsConnectionManager.java:211)
         at oracle.apps.fnd.common.Context.borrowConnection(Context.java:1671)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnectionFinal(AppsContext.java:2363)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnection(AppsContext.java:2301)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2172)
         at oracle.apps.fnd.common.AppsContext.getLocalJDBCConnection(AppsContext.java:2553)
         at oracle.apps.fnd.common.AppsContext.getLocalJDBCConnection(AppsContext.java:2486)
         at oracle.apps.fnd.common.AppsLogHelper.getConnection(AppsLogHelper.java:55)
         at oracle.apps.fnd.common.logging.DebugEventManager.getLogConnection(DebugEventManager.java:1418)
         at oracle.apps.fnd.common.logging.DebugEventManager.getLogConnection(DebugEventManager.java:1351)
         at oracle.apps.fnd.common.logging.JDBCHandler.publish(JDBCHandler.java:141)
         at oracle.apps.fnd.common.logging.DebugEventManager.log(DebugEventManager.java:723)
         at oracle.apps.fnd.common.AppsLog.writeCanonical(AppsLog.java:1723)
         at oracle.apps.fnd.common.AppsLog.write(AppsLog.java:1440)
         at oracle.apps.fnd.common.AppsLog.write(AppsLog.java:1350)
         at oracle.apps.fnd.security.ConnectionManager.log(ConnectionManager.java:1037)
         at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:760)
         at oracle.apps.fnd.security.ConnectionManager.dbConnect(ConnectionManager.java:704)
         at oracle.apps.fnd.security.AppsConnectionManager.makeGwyuidConn(AppsConnectionManager.java:609)
         at oracle.apps.fnd.security.AppsConnectionManager.getGwyuidConn(AppsConnectionManager.java:681)
         at oracle.apps.fnd.security.AppsConnectionManager.makeGuestConnection(AppsConnectionManager.java:552)
         at oracle.apps.fnd.security.DBConnObj.<init>(DBConnObj.java:206)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at oracle.apps.fnd.common.Pool.createObject(Pool.java:1187)
         at oracle.apps.fnd.common.Pool.borrowObject(Pool.java:946)
         at oracle.apps.fnd.security.DBConnObjPool.borrowObject(DBConnObjPool.java:661)
         at oracle.apps.fnd.common.Pool.borrowObject(Pool.java:1049)
         at oracle.apps.fnd.security.DBConnObjPool.borrowObject(DBConnObjPool.java:661)
         at oracle.apps.fnd.common.Pool.borrowObject(Pool.java:1049)
         at oracle.apps.fnd.security.DBConnObjPool.borrowObject(DBConnObjPool.java:661)
         at oracle.apps.fnd.security.AppsConnectionManager.borrowConnection(AppsConnectionManager.java:211)
         at oracle.apps.fnd.common.Context.borrowConnection(Context.java:1671)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnectionFinal(AppsContext.java:2363)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnection(AppsContext.java:2301)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2172)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1986)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1890)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1907)
         at oracle.apps.fnd.common.Context.getJDBCConnection(Context.java:1431)
         at oracle.apps.fnd.framework.CreateIcxSession.getConnection(CreateIcxSession.java:545)
         at oracle.apps.fnd.framework.CreateIcxSession.getIntValue(CreateIcxSession.java:346)
         at oracle.apps.fnd.framework.CreateIcxSession.getUserID(CreateIcxSession.java:323)
         at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:148)
         at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
         at test_fwktutorial._jspService(test_fwktutorial.jsp:45)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)

    Check:
    1)db connection-- active or not
    2)responsibility-- attached to the username with which you are trying to access through jdev
    3)dbc file correct or not.
    there are n number of threads in this forum, which have been answered to user for same problems, try to search through them, if u still get in problems.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Need to run RemoteDesktop from JSP file, WebServer Running in Linux.

    Hi All,
    i want to run a RemoteDesktop(.RDP) from a JSP page, webserver is running on Linux.
    Like i am having abc.rdp file, when i am invoking this file from the jsp, it is displaying the content of the abc.rdp file.
    instead of that i am using MIME, following is the snippet i am using.....
    String filepath=path+objId+".rdp";
    FileInputStream fis = new FileInputStream(filepath);
    System.out.println("     filepath               "+filepath);
    byte[] bytes = new byte[fis.available()];
    response.setContentLength(bytes.length);
    fis.read(bytes,0,bytes.length);
    javax.servlet.ServletOutputStream Pout = response.getOutputStream();
    //String string = new String(bytes);
    //Pout.println(string);
    Pout.println(bytes);
    Pout.flush();
    Pout.close();
    fis.close();
    the above code is asking me to save the .rdp file. But i want to run the .rdp file directly without asking me saving option.
    Your Views and Suggestions are valuble to me....
    Thanks
    Chiranjeevi.

    you need to configure the web browser to associate that particular file type with the appropriate action

  • Iam not able to run a simple batch file from within java

    This is how my code looks like.
    It does'nt give me any error but I dont see the output from batch file which is suposed to be a simple redirection of dir command...
    package mypackage1;
    import java.io.File;
    public class RunBatch
    public RunBatch()
    try{
    Runtime rt = Runtime.getRuntime();
    String cmd = "generate_invoice";
    String path = "C:\\application\\Maps\\Reports";
    File file = new File(path);
    String[] envp = {""};
    String[] args = {"C:\\application\\Maps\\Reports\\generate_invoice.bat"};
    System.out.println("************ executing batch ");
    Process proc = rt.exec(args);
    System.out.println("************ batch executed ");
    }catch(Exception e)
    e.printStackTrace();
    * @param args
    public static void main(String[] args)
    RunBatch runBatch = new RunBatch();
    }

    Runtime.exec() only can run executable files. Batch file is not an executable - it is a script executed by command interpreter (cmd.exe). So, you should execute "c:\windows\system32\cmd.exe /c C:\application\Maps\Reports\generate_invoice.bat".
    Denis
    http://www.excelsior-usa.com/jet.html
    JVM with AOT compilation

  • Web Server in Java- Running Servlets and JSP files?

    I am developing a web server in java. i wish to execute server side tools(jsp and servlets) in this web server. how i can add this functionalities to this server? is any tools in java are available for running these?

    There certainly are. Perhaps the best known is Tomcat, part of the Jakarta project at http://jakarta.apache.org.

  • Can't run jsp file

    why i can't run my jsp file? but some of them can be run ?
    i use tomcat.
    this is my snippet code :
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body>
    <%
         out.println("Hai");
    %>
    </body>
    </html>i can't run above jsp file. why ?
    am i being hacked ? i use IE 5 althought sometime i use netscape 6 or Opera 7.
    i try to run another jsp file, it's succeed but with above simple jsp file, it can't.
    but when i tried to run it on another computer, it runs.
    HELP ME!

    Once again, I HAVE SAVE IT!. and i make sure that the
    file name didn't mistake.
    but when i run it, the link doesn't have any link to
    anywhere.Maybe your link is incorrect.
    >
    the other step i take, save as the file to another
    name and then run it again, but it still the same.
    the change i have made is useless.
    Just for this file (suppose we call it trouble.jsp).
    for another jsp file, when i run it, it works.
    but, for this trouble.jsp, i found it very weird.Weird won't help anybody fix your problem.
    >
    I'll repeat once again, i have save it and make sure
    the name is correct, the path is correct when i run
    it.Then everything's fine, I guess.
    Yes, sometime we make mistake and let other people get
    the blame.
    but, for this, i found it weird.The machine is only doing what you told it to do, and what you told it is quite incorrect. There's nothing weird about it.
    >
    according to me, i have set my tomcat very well.Maybe you aren't the best judge.
    from the start i use it, it works fine and give me
    result the way i expected.Then why are you posting anything here? Sounds like you know everything and that all is well.

  • How to run the jsp file

    i am writing a simple jsp file
    i dont know how to run in the tomcat server
    for servlets first i created the dot class files by using the command prompt and then in the tomcat server we go the webapps folder and i copy the class files and due to xml file i run the program
    I have added the jsp-api.jar and el-api.jar files in the environment variables so what i do to run the jsp
    can anyone can tell me how to do that
    here is the program
    <%@page contentType="text/html" import="java.util.*" %>
    <!--
    Date.jsp
    -->
    <html>
    <body>
    <p> </p>
    <div align="center">
    <center>
    <table border="0" cellpadding="0" cellspacing
    ="0" width="460" bgcolor="#EEFFCA">
    <tr>
    <td width="100%"><font size="6" color
    ="#008000"> Date Example</font></td>
    </tr>
    <tr>
    <td width="100%"><b> Current Date
    and time is: <font color="#FF0000">
    <%= new java.util.Date() %>
    </font></b></td>
    </tr>
    </table>
    </center>
    </div>
    </body>
    </html>

    i am getting an http 500 error for running the jsp file
    here is the code
    <%@ page import="java.util.Date" %>
    <% Date now = new Date(); %>
    <html>
    <body>
    <p>Hello, world! It is now <%= now.toString() %>.</p>
    </body>
    </html>

  • Help with JSP/Weblogic/Tomcat Discrepencies

    Hi,
              I have something very strange happening. I recently did some JSP stuff on
              WLS60SP1 and all went quite well. I then took those same JSP pages and tried
              them out on the latest release of TOMCAT. I was really impressed that
              everything seemed to be completely transparent and working just fine until
              the following situation:
              When I reference, within a JSP page, an object that has previously been
              added to the request scope that has just been created, but not messed with
              in anyway...meaning all the attributes in this bean have their default
              values set...and they are all Strings with the exception of one Integer
              using this format:
              <%= custVal.getCustomerNumber() %>
              - In WLS, what shows in the text field on the form is nothing, because
              customer number in the custVal object is null (default for a String)..this
              is what I want.
              - In Tomcat, what shows it the word "null".
              ...here is the weird part, by changing from scriptlet references to the
              <jsp:getProperty....> format such as....
              <jsp:getProperty name="custVal" property="customerNumber"/>
              -In WLS, he is still a happy camper and works just fine regardless of how I
              reference the bean
              -In Tomcat, I also get the correct results that I want.
              So, unlike most postings, I found out how to fix it but I would like to know
              why...any ideas?
              Thanks in advance,
              Paul Reed
              www.jacksonreed.com
              object training and mentoring
              Jackson-Reed, Inc. 888-598-8615
              www.jacksonreed.com
              Author of "Developing Applications with Visual Basic and UML"
              http://www.amazon.com/exec/obidos/ASIN/0201615797/jackreedinc/104-0083168-31
              95939
              Author of "Developing Applications with Java
              

              Try http://localhost:7001/HelloWorld.jsp
              "b. patel" <[email protected]> wrote:
              >
              >I need help with running a simple JSP. I created a WLS domain using the
              >WebLogic
              >Configuration Wizard. I am trying to access HelloWorld.jsp which is
              >located under
              >C:\bea\user_projects\wlsdomainex\applications\DefaultWebApp.
              >I type
              >http://localhost:7001/DefaultWebApp/HelloWorld.jsp. I get 404 - Page
              >Not Found
              >Error. The weblogic server starts Succesfully. I am trying this in Win
              >2K environment.
              >
              >I am new to WebLogic. Thanks for your Help in advance.
              >
              

Maybe you are looking for

  • Best logic to insert records with constant set of values.

    hi all, i am using Forms [32 Bit] Version 6.0.8.24.1 (Production). i have process type 'I' and 'E'. if process type = 'I' then i have to insert five records into table. "company,job type,serial,process type,value,created by,created on" here all colum

  • Key figure hierarchy is higher than the characteristics

    Hello, i have a problem about the hierarchy. i have a info structure s902 with key figures Purchase order and Po-items but SAP see every PO-item as a PO. So i have the same amount for Purchase order and PO-items. It should be for example 2 PO and 20

  • How to create statement templates in ABAP?

    In ABAP editor, when I go to pattern-> Other pattern and specify zpattern, then the following statements should be inserted in my code Changed by .......:  Your Name Date..............:       Current Date Requested By......: Reference Document:  SR..

  • Lining some divs up, one with a fireworks html and another with a jQuery slideshow

    I am having an issue lining two divs up within a div.  One div has a fireworks html in it (by the way, I can't figure out why that the button states arent' working.  I inserted the code via the insert menu > image objects > fireworks html, but for so

  • Changed Internal HD - Now Photoshop won't load: "Could not initialize.."

    Hi All, I apologise for posting here.. I've been trawling the Adobe forums and none of the suggestions for this seem to work. I recently used Carbon Copy Cloner to take a copy of my 80gig HD and transfer it to my new 320gig HD (internal) that I have