Running JSP content that is NOT in a jsp file

What I would like to do is this:
          I have an application deployed as an ear file. I would like to add JSP
          files while the server is running (much like you can do in exploded
          format).
          Furthermore, I would like to have the JSP content stored in an
          external medium, such as a database. As far as I can tell, I cant work
          out how to make JSPs run from anything other then a file relative to
          the context root (and fixed in the case of an ear).
          There must be a weblogic JSP engine class that I can extend/decorate
          to read the JSP from another location.
          Any ideas?
          

"MikeNeale" == MikeNeale <[email protected]> writes:
                    MikeNeale> What I would like to do is this:
          MikeNeale> I have an application deployed as an ear file. I would like to add JSP
          MikeNeale> files while the server is running (much like you can do in exploded
          MikeNeale> format).
          MikeNeale> Furthermore, I would like to have the JSP content stored in an
          MikeNeale> external medium, such as a database. As far as I can tell, I cant work
          MikeNeale> out how to make JSPs run from anything other then a file relative to
          MikeNeale> the context root (and fixed in the case of an ear).
          MikeNeale> There must be a weblogic JSP engine class that I can extend/decorate
          MikeNeale> to read the JSP from another location.
          You're probably better off looking in a different direction, by having your
          application use dynamically generated XML along with transformers.
          ===================================================================
          David M. Karr ; Java/J2EE/XML/Unix/C++
          [email protected] ; SCJP; SCWCD
          

Similar Messages

  • I burned disks of previously purchased content that is not available thru iTunes anymore but the latest ver. of iTunes won't let me copy this same content onto a new comp.  Is there a way to do this or maybe an earlier ver. of iTunes to download?

    I burned disks of previously purchased content that is not available thru iTunes anymore but the latest ver. of iTunes won't let me copy this same content onto a new comp.  Is there a way to do this or maybe an earlier ver. of iTunes to download?

    Those links in case you need them:
    iTunes Windows 10.3.1 (32-bit)
    iTunes Windows 10.3.1 (64-bit)
    tt2

  • After updating to Maverick some emails arrive with contents that do not belong to Sender and title.

    Since updating to Mavericks I'm receiving some e-mails with contents that does not match the Sender and Title. Also receiving blank emails that DO have contents on my iPhone.

    HI..
    A rebuild can help >  Mail (Mavericks): Rebuild mailboxes

  • Sharepoint Mp 2013 Discovers Servers that are not in the config file.

    Hi,
    Sharepoint Mp 2013 Discovers Servers that are not in the config file. Any workaround/fix?
    Regards,
    Mirza

    Hi,
    Would you please give more details about your question?
    Have you downloaded and imported the sharepoint 2013 management pack to your management group:
    System Center Management Pack for SharePoint Server 2013
    http://www.microsoft.com/en-hk/download/details.aspx?id=35590
    In addition, please also follow the below article to configure your management pack:
    Configuring the SharePoint 2013 Management Packhttp://blogs.technet.com/b/kevinholman/archive/2013/05/14/configuring-the-sharepoint-2013-management-pack.aspx
    It is also suggested to read the management pack guide before using the management pack.
    Regards, Yan Li

  • I need to download Firefox 1.5 or 2.0 in order to run a program that is not supported in the newer versions of firefox. How can I get the older versions?

    I need an older version of Firefox to run a program that is only supported on Firefox 2.0 or 1.5. Where can I download this older version of Firefox?
    == This happened ==
    Not sure how often
    == User Agent ==
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

    Try the portable version: http://www.freesmug.org/portableapps/firefox/

  • Firefox is displaying content that is not in english

    Since Firefox went to 4.0 I'm having content on web pages displayed in some odd language. It's like something is set to something other than English. When I copy and paste the gibberish it paste in english

    Sounds like a problem with fonts that do not work or are corrupted. Try to reinstall the font(s) that are used on those web pages.

  • I am confused why my reply includes  content that is not permitted

    I tried to reply to this topic:
    http://discussions.apple.com/thread.jspa?threadID=2691835&tstart=0
    and got the "you have included content in your post that is not permitted":
    I can't even quote my reply here (was met with the same warning) and am quite certain I did not violate the terms. This is very upsetting - how can I go about finding out what I did wrong?

    Thank you, LS; nothing from hosts at this point.
    What I said - in different words - was something like the OP might have answered his own question if he set up his messages to be stored on the server; that I only have POP but thought if it was an i... account it may have something to do with those settings and that he could move the messages to a different mailbox to make sure the messages would be available in Mail.
    We'll see if this wording will make it; and, yes, I've read the ToU many times, and do not understand why this would not be permitted.
    As it is now, the poster's question seems to have been answered with similar suggestions, so mine (which would have been the first reply) is no longer of value; but I'd still like to know which part I violated.
    Edit - got the same message; deleted the server name and inserted ... and now it worked? At least one of the replies included the server name (three letters starting with an "a") and were successfully posted.
    Message was edited by: Barbara Daniels1

  • Internal Server Error while running JSP file (Oracle AS - HP Unix)

    Hello Friends,
    I have created a JSP file in which I am trying to connect the database using oracle.jdbc.pool directory. But it shows an error message as:
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.
    the path for pool package is:
    /appltest/apps/prodora/iAS/oem_webstage/oracle/jdbc/pool
    the location of JSP file is:
    /appltest/apps/prodcomn/portal/TEST_test/test
    What I think is I have to play with the CLASSPATh entries, but dont know how. Please help me in solving this issue...
    For your reference the JSP code is:
    <%@ page import="java.sql.*, javax.sql.*, oracle.jdbc.pool.*" %>
    <jsp:useBean id="ods" class="oracle.jdbc.pool.OracleConnectionCacheImpl" scope="session" />
    <%
    try
    ods.setURL("jdbc:oracle:thin:@test:1546:test");
    ods.setUser("kpm_hr");
    ods.setPassword("kpm_hr");
    Connection conn = ods.getConnection();
    Statement stmt = conn.createStatement();
    Resultset rset = stmt.executeQuery("select first_name,last_name from kpm_hr.kpm_hr_emp_mst where empcode='P0580'");
    rset.next();
    out.println(rset.getString(1)+" "+rset.getString(2);
    catch(SQLException e)
    out.println(e);
    Thanks in adavnce,
    Ankur
    Regards,
    Ankur Bhatia

    Just to verify, which relevant log files have you found?
    catch(SQLException e) {
    out.println(e);
    } Have you search the console log file?
    A quick observation reveals that your jsp is just a standalone java program executed inside jsp. Suppose you just run it as a standalone program. Any error then?
    Another way going forward is to install oc4j standalone of the same version. It is very easy to install: just download the oc4j-extended.zip and unzip it and run "java -jar oc4j.jar". Put you jsp inside j2ee/home/default-web-app and run. You should see relevant log messages in j2ee/home/log/server.log and j2ee/home/application-deployments/yourApp/application.log.
    You should have Jdeveloper of some appropriate version installed. If you have not, install one. It might be not a little bit high learning curve at first, but the rewards are quick and amazing, especially since jdev 10.1.3. (I am speaking from my experience.) Try it with Jdeveloper.

  • Unable to run JSP file in TOmcat

    My Tomcat is running when i type http://localhost:8080/index.jsp , i'm able to see home page
    CLASSPATH=C:\j2sdk1.4.2_08\bin;E:\Grinder;E:\Grinder\lib\grinder.jar;C:\Program Files\Java\j2re1.4.2_08\lib\grinder.jar;
    JAVA_HOME=C:\j2sdk1.4.2_08
    I tried both pointing to JAVA_HOME C:\Program Files\Java\j2re1.4.2_08
    When i try to run the JSP file under C:\Tomcat 5.0\webapps\ROOT\add.jsp. I'm getting following error.
    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)

    I know the same.
    But problem is that whenever I am creating a new file containing single line say 'Hello world' and then try to run,
    the similar type of error msg comes.

  • Problems running jsp files with tags on tomcat 4.0

    hi,
    i had some jsp1.1 stuff running on tomcat3.3.
    last week i moved to tomcat 4.0 , changed the tags to fit jsp1.2 and... everything is wrong now. while trying to run jsp with tags i get an error message (same for all files):
    ---->
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: (class: org/apache/jsp/djsp$jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse; )V) Incompatible object argument for function call
    <-------
    the jsp files with no tags and servlets are running ok.
    I NEED YOUR HELP!!!

    cyclid,
    i have the same environment setup and the same troubles. after searching the forums, it seems that there are others with the same, if not similar issues, yet no solutions. if you find the solution to this one, could you please post it. i would really appreciate it since i have been on this one for several days with no success. i even tried the helloworld jsp/custom tag examples from a jsp profession book that i have and that won't work.
    Anyone out there,
    if you have any idea why this problem exists, any solutions, ideas would be appreciated.
    thank you,
    navesink

  • Error in running JSP files

    Hi,
    This is the first time I post message on the forum. The problem is that when I run the JSP files with Tomcat 4.0.1. It give the error messages. But I have put the class files under the root, such as ...\WEB-INF\classes, however, it doesn't work. Also I have set the classpath for tomcat. Is there any step I have missed?
    Please give me some solution as the problem has annoyed me for a long time.
    The error message is:
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    An error occurred at line: 1 in the jsp file: /qms1_src/blank.jsp
    Generated servlet error:
    C:\Tomcat 4.0\work\localhost\_\qms1_src\blank$jsp.java:56: Class org.apache.jsp.DBSession not found.
    DBSession sess = null;
    ^
    An error occurred at line: 1 in the jsp file: /qms1_src/blank.jsp
    Generated servlet error:
    C:\Tomcat 4.0\work\localhost\_\qms1_src\blank$jsp.java:59: Class org.apache.jsp.DBSession not found.
    sess= (DBSession)
    ^
    An error occurred at line: 1 in the jsp file: /qms1_src/blank.jsp
    Generated servlet error:
    C:\Tomcat 4.0\work\localhost\_\qms1_src\blank$jsp.java:64: Class org.apache.jsp.DBSession not found.
    sess = (DBSession) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "DBSession");
    ^
    3 errors, 1 warning
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
         at java.lang.Thread.run(Thread.java:536)

    Confused yet.
    Here's the deal. Every Java class is in a package. If it is not declared the it is the default package but the default package is based on the directory it is in.
    The DBSession class is in WEB-INF/classes and the jsp gets compiled into a class file that is placed in a different directory. Since the two class files are in different directories they are in different default packages. Thus the import.
    Most people don't run into this because they put their tags into packages and import the packages.
    To make everybody happy, put your tag in a package, recompile it and then import the package.

  • 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.

  • Can't run jsp files in Jdeveloper

    I have some existing jsp files and when I compile these files, Oracle9i Jdeveloper keeps telling me "Error: JSP files must reside in the server root directory or a subdirectory beneath it".
    I originally think that's because of "import" and I got rid of all "import ....", and the same error message still insists.
    Please help, thanks!:-).

    Hi All!
    I have just downloaded jdeveloper 9.0.3.3 - and I have run into a similar issue...
    1. I created workspace by selecting new workspace from wizard
    2. I created a new project -- from existing (previously tested using Resin server) code -- and, I select the "copy files to project directory" checkbox in the "wizard" dialog
    3. when I rebuild the project in jdev9033, for each jsp file name I get this message, i.e.,
    "Error: JSP files must reside in the server root directory or a subdirectory beneath it"
    what does this mean for me do?? (btw - I am using the default server that is integrated within Jdeveloper)
    In my working "existing code", my jsp files are loosely located under my "myProject" folder (which also contains the "WEB-INF" and "src" folders.
    Where, in my existing code, does JDeveloper expect to my the JSP files to be?....In a "JSP" folder?.... Or, where - within my new workspace/project - should I copy these JSP files in order to make this error message go away??
    Thanks for you help!!

  • Can't find the imported java class when run .jsp file

    Hi,
    I want to run a jsp web application using tomcat. I put all my .jsp files under "TOMCAT_HOME/webapps/junmin" directory, and put all .class files under "TOMCAT_HOME/webapps/junmin/WEB-INF/classes" directory. I set up TOMCAT_HOME AND JAVA_HOME already. But when I type in the address like below:
    http://db1.acad.emich.edu:8080/junmin/login.jsp
    The IE will give me error msg indicating that it can't find all the .class files which I imported them in login.jsp file.
    So, does anyone know that if I miss some configuration in order to let the .jsp file recognize the .class files. Thanks a lot!
    Sincerely, Junmin

    Ha, this might be the reason.
    Can I add sth like this:
    <Context path="/junmin" docbase="junmin" debug=0 reloadable=true>
    </Context>
    But in my local computer, I didn't add this <Context> either. It works well.
    Thanks a lot! I will ask the administrator to try this.
    And will write down the reason.
    Sincerely, Junmin

  • How to list files that are NOT in a .jar file?

    Is it possible to list files (resources, .gif/.jpg files, etc.) that are NOT included in the jar but are still to be considered part of the application somewhere in the jnlp-file?
    My applications requires lots of icons which I have put into .gif files. So far I kept them in individual files next to the .jar file and that worked fine.
    JWS now seems to support only stuff that is included in (a) .jar-file(s). That in itself woul not be much of a problem, however, when I include my .gif files into the .jar files they seem to get corrupted by the jar-signing process (at least that what's the code says, which can suddenly not handle these images any more).

    My previous seem to have been non-sense. The .gif file were not corrupted, but rather they were not found at all. They actually must NOT be included in the .jar file, or else they are not found. Strange enough, the .properties-file seemingly HAS to be in the .jar file to be found.
    This is something I'll probably never fully understand with java: which file-types it searches where...

Maybe you are looking for

  • Monitoring of RFC

    Hi, I have a very simple question but I have forgotten how to do this. I try to call a BAPI via XI. Where in the XI environment can I monitor or check, which RFC call got to the XI system and why error occurs. Thanks for your assistance. Regards Flor

  • Calibration TPC2212

    Hello First I apologize for the English. I'm from Brazil I am developing an application in LabVIEW 2014 using a Touch Panel model TPC2212. I'm in serious trouble in touch. I have done the calibration TPC2212 and functions typical for 2 minutes. After

  • Cover wont display in 3D scrolling way

    i just added cover to the album but when i switch to this nice view i get only normal pic while the rest albums are ok. havent got a clue what went wrong in the process.

  • How can i Unistall mystartsearch engine from home page ?

    When i open firefox allways mystartsearch engine opens as home page . I try everything to uninstall it but i can't . Please help

  • Java native -- please help

    class HelloWorld { private native void print(); public static void main(String[] args) { new HelloWorld().print(); static { System.loadLibrary("HelloWorld"); //this is .h file /* DO NOT EDIT THIS FILE - it is machine generated */ #include <C:\java\jd