FRUSTRATING JSP

I have dowloaded J2SE 1.4.2 and have successfully intalled it. I have also downloaded a zip file of jakarta-tomcat-5.0. When i unzip it, it extracts all the files and folders in their rightful directory structure. Does this mean i have successfully installed tomcat?
Is this all i need to see my .jsp file?
Do i need to compile a .jsp file before i can view it?
I tried running startup.bat from the /bin folder of tomcat 5, but when i still cannot see http://localhost:8080/index.jsp page.
Im getting so frustrated now as i cannot even start. Please help me!

You will probably need to assign the JAVA_HOME system variable to your JDK install directory. I think you make this adjustment in the .bat file you mentioned. Give that a try and see what happens.

Similar Messages

  • Also VERY frustrated:  No java-code executing within JSP

    Hi!
    I'm completely frustrated at last! It must be possible to install tomcat/apache correct but I'm not able to do so!
    New problem:
    I try to view a jsp with IE6 by selecting File\Open. If I choose the copy at '\tomcat\webapps\examples\WEB-INF\jspjbex4.jsp' suddenly Dreamweaver opens and show me the code of 'jbex4.jsp'. When I open a copy of jbex4.jsp located anywhere else on my computer the jsp is shown, but the problem is: No javabean-code is used although it is coded correctly.
    I guess the problem is with some classpath or something quite simillar. When I try to view the examples delivered by tomcat I've got the same problem: Whereever there should be output generated by java-code (e.g. by calling a method like <%= test.getDM() %>) there's nothing!!!!!
    So I checked if apache is working correctly. The test page is shown correctly. So the error must occure somewhere under tomcat. But when starting tomcat I receive no error message..
    Can anyone please help me?
    Thanx a lot!!!!!
    p.s. Yes, 'Normal' java-code is executed fine!

    With tomcat 1.3.3 you place the xml file with the context mapping in the conf folder under the tomcat install directory. You must give the xml file a name that starts with "apps-" followed by something unique, followed by ".xml". So for examle apps-testapp.xml is good. Inside the xml file place the code I gave you above then restart tomcat. Make sure to change the docBase value to the directory that contains your WEB_INF folder and change the path to whatever you want. If the path is set to "/" then you would use the url http://www.yourdomain.com/yourjsp.jsp. If the path is set to "/TestApp" then you use the URL http://www.yourdomain.com/TestApp/yourjsp.jsp.
    For newer version of tomcat I am not sure exactly where the context mapping goes. Instead of in an apps-xyz.xml file it might go in tomcats server.xml file which should also be in the conf directory in the tomcat install directory.
    Each webapp has its own config file which should be at /WEB-INF/web.xml. Look on google or something about that. All your classes go in /WEB-INF/classes/package.name/class.class.
    Put your class files into packages!
    for you you should put your bean at /WEB-INF/classes/testpackage/JspTest.class.
    In the code for JspTest.java place "package testpackage;" at the top then recompile. In your JSP file use <jsp:useBean id="ex4" scope="session" class="testpackage.JspTest" />
    -S-

  • Passing parameters to the SQL Report from a text box in jsp

    Hi All,
    I want to dynamically generate the SQL Server Reporting Services by passing the query parameter from the url like this :
    "http://localhost/Reports/Pages/Report.aspx?ItemPath=%2fDashboardReports%2fHorse_Profile&rs:Command=Render&rs:HorseID=117415"
    Where horseid id my parameter which is needed by report to generate the required data.
    This query paramter value is picked from the text box on my jsp page.
    But my problem is when i go to this url it says the message
    "The 'HorseID' parameter is missing a value ".
    I have done a lot of search on this topic. Everybody says that we can pass the values from the url like i am using. But still its not working.
    Any body has any idea please give me some idea.
    Regards.

    If you receive a picture via email or text message in ios 7 and when you press the action icon to save the picture and you do not get the option to save to your camera roll. Press and hold on the the image and you will get an overlay pop up to save the image. I have no idea why some attachments don't have option in action menu to save in the camera roll but by experimentation and earned frustration I found the above to work in certain situations.
    Be well and have fun and feel rewarded in your frustrations. For without challenges, life would be an utter bore.

  • Rep-1247 error when starting jsp file on linux

    I have a rather frustrating problem on our production servers...
    We are trying to start jsp files on a linux report server (10Gr2).
    The command is displayed below
    [2007/10/8 10:57:59:853] Info 50132 (EngineImpl:setCommandLine): Get command line: baseUrl=http://xxxxx:7777/reports/rwservlet/getfile/ userid=reporting@SHARED_BE USER_AGENT=Java/1.5.0_07 SERVER_NAME=xxxxxxxxx jobname="/opt/ogreports/catalog/SMC/BE-Shared/xxxx.jsp" destpath="/var/data/og/dashboard/van/sgs/001/reports/xx" getFilestr=/no> imagekey=reports9i par_end_date="01-10-2007" desname=xxxxxxxxxxx.pdf REMOTE_ADDR=127.0.0.1 SERVER_PROTOCOL=HTTP/1.1 authid=RWUser par_start_date="01-09-2007" destype=rcpfile REMOTE_HOST=127.0.0.1 SERVER_PORT=7777 CONTENT_TYPE=application/x-www-form-urlencoded report="/opt/ogreports/catalog/SMC/BE-Shared/xxx.jsp" expiredays=0 baseimageurl=http://xxxxx:7777/reports/rwservlet/getfile/HW/YX+JkD0HSAcVLzaSGilrWNAn36ufghgStsvQqfNFC7w== schedule="00:00 Oct 08, 2007" scphost="lion" desformat=pdf SCRIPT_NAME=/rwservlet par_id_project="1750"
    The after paramform does some major data manipulations, writing to temporary tables (on commit preserve rows), that are used in queries from the reports.
    This seems to go allright. The setup of all queries, program units etc passes as well. But when the report has to start formatting, I get a "1247 Program Unit not compiled" error message. This is an excerpt from the engine trace
    [2007/10/8 11:40:40:243] Debug 50103 (EngineImpl:getCacheData): Start
    [2007/10/8 11:40:40:243] Debug 50103 (EngineImpl:getCacheData): m_jobId = 9182
    [2007/10/8 11:40:40:244] Debug 50103 (EngineImpl:getCacheData): Quit
    [2007/10/8 11:40:40:534] Error 50103 (C Engine): 10:40:40 ERR REP-1247: Report contains uncompiled PL/SQL.
    [2007/10/8 11:40:40:535] Error 50103 (rwfdt:rwfdtprint): 10:40:40 ERR Error occurred sending Job output to cache
    [2007/10/8 11:40:40:536] Error 50103 (rwfdt:rwfdtfl_FreeDistList): running
    [2007/10/8 11:40:40:536] Error 50103 (rwfdt:rwfdtfl_FreeDistList): quit
    [2007/10/8 11:40:40:580] Debug 50103 (EngineImpl:run): CRunReport returns: 1247
    [2007/10/8 11:40:40:608] Debug 50103 (EngineImpl:run): Quit
    [2007/10/8 11:40:40:699] Exception 1247 (): Report contains uncompiled PL/SQL.
    oracle.reports.RWException: IDL:oracle/reports/RWException:1.0
    at oracle.reports.engine.EngineImpl.run(EngineImpl.java:447)
    at oracle.reports.engine._EngineClassImplBase._invoke(_EngineClassImplBase.java:90)
    at com.sun.corba.se.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:353)
    at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:280)
    at com.sun.corba.se.internal.iiop.RequestProcessor.process(RequestProcessor.java:81)
    at com.sun.corba.se.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:106)
    I know that 1247 normally covers up another error, but I don't seem to get it....
    Funny thing is, when copying the jsp's to another reports server, they do run (on the same DB).
    Message was edited by:
    user599601

    I have a rather frustrating problem on our production servers...
    We are trying to start jsp files on a linux report server (10Gr2).
    The command is displayed below
    [2007/10/8 10:57:59:853] Info 50132 (EngineImpl:setCommandLine): Get command line: baseUrl=http://xxxxx:7777/reports/rwservlet/getfile/ userid=reporting@SHARED_BE USER_AGENT=Java/1.5.0_07 SERVER_NAME=xxxxxxxxx jobname="/opt/ogreports/catalog/SMC/BE-Shared/xxxx.jsp" destpath="/var/data/og/dashboard/van/sgs/001/reports/xx" getFilestr=/no> imagekey=reports9i par_end_date="01-10-2007" desname=xxxxxxxxxxx.pdf REMOTE_ADDR=127.0.0.1 SERVER_PROTOCOL=HTTP/1.1 authid=RWUser par_start_date="01-09-2007" destype=rcpfile REMOTE_HOST=127.0.0.1 SERVER_PORT=7777 CONTENT_TYPE=application/x-www-form-urlencoded report="/opt/ogreports/catalog/SMC/BE-Shared/xxx.jsp" expiredays=0 baseimageurl=http://xxxxx:7777/reports/rwservlet/getfile/HW/YX+JkD0HSAcVLzaSGilrWNAn36ufghgStsvQqfNFC7w== schedule="00:00 Oct 08, 2007" scphost="lion" desformat=pdf SCRIPT_NAME=/rwservlet par_id_project="1750"
    The after paramform does some major data manipulations, writing to temporary tables (on commit preserve rows), that are used in queries from the reports.
    This seems to go allright. The setup of all queries, program units etc passes as well. But when the report has to start formatting, I get a "1247 Program Unit not compiled" error message. This is an excerpt from the engine trace
    [2007/10/8 11:40:40:243] Debug 50103 (EngineImpl:getCacheData): Start
    [2007/10/8 11:40:40:243] Debug 50103 (EngineImpl:getCacheData): m_jobId = 9182
    [2007/10/8 11:40:40:244] Debug 50103 (EngineImpl:getCacheData): Quit
    [2007/10/8 11:40:40:534] Error 50103 (C Engine): 10:40:40 ERR REP-1247: Report contains uncompiled PL/SQL.
    [2007/10/8 11:40:40:535] Error 50103 (rwfdt:rwfdtprint): 10:40:40 ERR Error occurred sending Job output to cache
    [2007/10/8 11:40:40:536] Error 50103 (rwfdt:rwfdtfl_FreeDistList): running
    [2007/10/8 11:40:40:536] Error 50103 (rwfdt:rwfdtfl_FreeDistList): quit
    [2007/10/8 11:40:40:580] Debug 50103 (EngineImpl:run): CRunReport returns: 1247
    [2007/10/8 11:40:40:608] Debug 50103 (EngineImpl:run): Quit
    [2007/10/8 11:40:40:699] Exception 1247 (): Report contains uncompiled PL/SQL.
    oracle.reports.RWException: IDL:oracle/reports/RWException:1.0
    at oracle.reports.engine.EngineImpl.run(EngineImpl.java:447)
    at oracle.reports.engine._EngineClassImplBase._invoke(_EngineClassImplBase.java:90)
    at com.sun.corba.se.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:353)
    at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:280)
    at com.sun.corba.se.internal.iiop.RequestProcessor.process(RequestProcessor.java:81)
    at com.sun.corba.se.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:106)
    I know that 1247 normally covers up another error, but I don't seem to get it....
    Funny thing is, when copying the jsp's to another reports server, they do run (on the same DB).
    Message was edited by:
    user599601

  • Error 404: SRVE0190E: File not found when trying to access jsp

    I am using RAD (new to web dev) for some reason my app is unable to find .jsp's when they are not in the web content folder. I have a predefined package for my jsp's and when I run my servlet I get
    Error 404: SRVE0190E: File not found: /WEB-INF/classes/app/view/search.jsp
    now if I amend my URL in the servlet to "/search.jsp" and move the jsp to the web content folder, it works. I just don't understand why it cannot find the file when I put it in the package I created and link to it, but finds it just fine in the webcontent folder. Is there some unwritten rule JSP's MUST be in the webcontent folder? Because when i do that, then I have issues with my image links for the GUI (get red X's for all my images regardless of the fact they are linked properly.) Basically if I put my jsps where I want, look fine in design and preview, but the jsp isnt found when executed, if I move them to the web content folder the images no longer work but the jsps run. I am getting rather frustrated. Any help is appreciated.

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    See also:
    *https://support.mozilla.org/kb/Clear+Recent+History
    Are you using cleanup software like CCleaner or other software that may corrupt the cache?
    You can try to delete the entire cache folder.<br />
    You can find the location of the cache folder on the about:cache page (open via the location bar, like a web page).
    You can check the <b>browser.cache.disk.enable</b> pref on the <b>about:config</b> page to verify that the disk cache is enabled (should be true).

  • How to lookup an EJB from JSP on a Remote Server in JES2005Q4

    Hi,
    I am having two different domain (domain1,domain2) respectvely. My ABC.ear j2eee application is deployed on domain2 and its iiop port is 33703.In domain1 i have xyz.war (web application) and it's IIOP port is 3700 .In xyz.war i am having CallEJB.jsp file.In this Jsp file i want to lookup an EJB Service called PaymentEJB(JNDI Name is ejb/PaymentEJB).
    The code is below
    InitialContext context=new InitialContext();
    Object objRef=context.lookup("corbaname:iiop:andaman:33703#ejb/PaymentEJB");
    I am getting the following error.
    [#|2005-12-14T16:42:03.422+0530|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.resource.corba._DEFAULT_.rpc.transport|_ThreadID=11;|"IOP00410216: (COMM_FAILURE) Unable to create IIOP listener on the specified host/port: all interfaces/3700"
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 216 completed: No
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:2661)
    My doubt is
    1.While starting domain1 and domain2 iiop listeners are started on the port 3700 and 33703.in that case why EJB lookup tries to create listener on one more time.
    2.I am looking the 33703 port only.but it tries to create port on 3700 why?
    3.It was working till JES2005Q1.Is there any patch i need to install? or i need to change anything in my code.
    I am frustrated with this error for past one week.I will be happy if some body will give me the peace of mind(thru some solution).

    Hi,
    I am having two different domain (domain1,domain2) respectvely. My ABC.ear j2eee application is deployed on domain2 and its iiop port is 33703.In domain1 i have xyz.war (web application) and it's IIOP port is 3700 .In xyz.war i am having CallEJB.jsp file.In this Jsp file i want to lookup an EJB Service called PaymentEJB(JNDI Name is ejb/PaymentEJB).
    The code is below
    InitialContext context=new InitialContext();
    Object objRef=context.lookup("corbaname:iiop:andaman:33703#ejb/PaymentEJB");
    I am getting the following error.
    [#|2005-12-14T16:42:03.422+0530|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.resource.corba._DEFAULT_.rpc.transport|_ThreadID=11;|"IOP00410216: (COMM_FAILURE) Unable to create IIOP listener on the specified host/port: all interfaces/3700"
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 216 completed: No
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:2661)
    My doubt is
    1.While starting domain1 and domain2 iiop listeners are started on the port 3700 and 33703.in that case why EJB lookup tries to create listener on one more time.
    2.I am looking the 33703 port only.but it tries to create port on 3700 why?
    3.It was working till JES2005Q1.Is there any patch i need to install? or i need to change anything in my code.
    I am frustrated with this error for past one week.I will be happy if some body will give me the peace of mind(thru some solution).

  • Old JSP pages loading // how to get new ones?

    I am new to the forum and hope that experts can help. I am running a JSP application on an Apache/tomcat setup.
    I encounter the problem that although I update a webpage (say 'example.jsp') with a date of 12 Jan 2009, the server continues to use a version of the page from many days before.
    Miscellaneous point: these pages are being accessed by jsp:include and jsp:forward.
    It seems like there is a hidden cache somewhere that the server likes to use in place of my updated pages.
    I'd be pleased for any solutions!

    Thanks everyone for the very helpful replies.
    There were a total of 4 problem files.
    Here are the results based on the suggestions received:
    1. The suggestion of deletion of the .java and .class files (to be regenerated automatically from the .jsp files) fixed 3 of the problems: " Occasionally, we get one that just wont recompile and I have to delete it from the work directory. A JSP is turned into a .java file and then compiled in to a .class file in this directory. Deleting it will cause the file to recompile. [tomcat home]/work/catalina/localhost/[war directory name]/org/apache/[path to the file]." I was a bit wary to delete the entire directory, but I went for it, and everything (including the numerous subdirectories) was automatically regenerated.
    2. There was still 1 problem file. I think that this file was somehow in the RAM of tomcat because the suggestion to shut everything down and restart took care of this last file: "Along with webapps folder in tomcat, there is a work folder. Open work.catalina.localhost. In localhost, you will find your application. Delete it. Deleting it will not cause any problem. Now again restart tomcat. Now you should get the new pages loaded."
    3. The following suggestion seems to be a very good one for my application (i.e., low traffic on a specialized site) that could prevent similar problems in the future: "If this is for development only and you´re using Tomcat, consider to set <context reloadable="true">. This will check for changes in the webapps folder at certain intervals and automagically redeploy/reload the changes. Don´t use this setting in production, it´s fairly expensive to let it check the webapps everytime. For other appservers, consult the appserver specific documentation for similar settings."
    Coming to this community was a very good idea with lots of excellent suggestions that fixed my problem! I had been frustrated by this for some months now. Thanks everyone!

  • Cannot compile JSP pages in Tomcat 5.0.28

    Hi,
    I'm new to Tomcat and this has been bothering me for days now.
    I have (seemingly) correctly installed Tomcat v5.0.28 and am currently in the process of testing my environment with simple html/jsp pages.
    My server starts up fine with no error messages.
    Testing the server I can access the .html file fine, however I get a HTTP 404 error for the .jsp: The requested resource (/hello/hello.jsp) is not availableI have done the following since installation:
    1. Installed Tomcat to C:\Program Files\jakarta-tomcat-5.0.282. Set the environment variable JAVA_HOME to the value C:\Program Files\Java\jdk1.5.0 (base directory of my java installation)
    3. Even added ;C:\Program Files\Java\jdk1.5.0\bin to the environment variable Path (just in case, for javac)
    4. Enabled the invoker sevlet by uncommenting:
        <servlet>
            <servlet-name>invoker</servlet-name>
            <servlet-class>
              org.apache.catalina.servlets.InvokerServlet
            </servlet-class>
        </servlet>and
        <servlet-mapping>
            <servlet-name>invoker</servlet-name>
            <url-pattern>/servlet/*</url-pattern>
        </servlet-mapping>in conf/web.xml
    5. Added an access log valve to locahost
    6. Set ant fork compiles to seperate JVMs:
        <servlet>
            <servlet-name>jsp</servlet-name>
            <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
            <init-param>
                <param-name>fork</param-name>
                <param-value>true</param-value>
            </init-param>
            <init-param>
                <param-name>xpoweredBy</param-name>
                <param-value>false</param-value>
            </init-param>
            <load-on-startup>3</load-on-startup>
        </servlet>6. Installed the .html and .jsp pages to folder %CATALINA_HOME%/webapps/ROOT/helloNow when I bin/startup.bat Tomcat starts without anu error messges. In a browser I can now access http://localhost:8080 and http://localhost:8080/hello/hello.html but not http://localhost:8080/hello/hello.jspHere are my logfiles (in debug mode) for performing the above actions and then shutting down:
    catalina_log.txt
    2006-04-29 18:29:02 EngineConfig: EngineConfig: Processing START
    2006-04-29 18:29:24 EngineConfig: EngineConfig: Processing STOPlocalhost_log.txt
    2006-04-29 18:29:01 StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    2006-04-29 18:29:01 StandardContext[/jsp-examples]ContextListener: contextInitialized()
    2006-04-29 18:29:01 StandardContext[/jsp-examples]SessionListener: contextInitialized()
    2006-04-29 18:29:02 StandardContext[/servlets-examples]ContextListener: contextInitialized()
    2006-04-29 18:29:02 StandardContext[/servlets-examples]SessionListener: contextInitialized()
    2006-04-29 18:29:24 StandardContext[/servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@14eaec9')
    2006-04-29 18:29:24 StandardContext[/servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@b533b8')
    2006-04-29 18:29:24 StandardContext[/servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@569c60')
    2006-04-29 18:29:24 StandardContext[/servlets-examples]SessionListener: contextDestroyed()
    2006-04-29 18:29:24 StandardContext[/servlets-examples]ContextListener: contextDestroyed()
    2006-04-29 18:29:24 StandardContext[/jsp-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@d67067')
    2006-04-29 18:29:24 StandardContext[/jsp-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@6db724')
    2006-04-29 18:29:24 StandardContext[/jsp-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@112da40')
    2006-04-29 18:29:24 StandardContext[/jsp-examples]SessionListener: contextDestroyed()
    2006-04-29 18:29:24 StandardContext[/jsp-examples]ContextListener: contextDestroyed()localhost_access_log.txt
    127.0.0.1 - - [29/Apr/2006:18:29:13 +0930] "GET /hello/hello.html HTTP/1.1" 304 -
    127.0.0.1 - - [29/Apr/2006:18:29:19 +0930] "GET /hello/hello.jsp HTTP/1.1" 404 1000Also, my sourced test .html and .jsp files:
    hello.html
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <!--
    Simple HTML file to test server setup and configuration.
    Taken from Core Servlets and JavaServer Pages 2nd Edition
    from Prentice Hall and Sun Microsystems Press,
    http://www.coreservlets.com/.
    (C) 2003 Marty Hall; may be freely used or adapted.
    -->
    <HTML>
    <HEAD><TITLE>HTML Test</TITLE></HEAD>
    <BODY BGCOLOR="#FDF5E6">
    <H1>HTML Test</H1>
    Hello.
    </BODY></HTML>hello.jsp
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <!--
    Simple JSP file to test server setup and configuration.
    Taken from Core Servlets and JavaServer Pages 2nd Edition
    from Prentice Hall and Sun Microsystems Press,
    http://www.coreservlets.com/.
    (C) 2003 Marty Hall; may be freely used or adapted.
    -->
    <HTML>
    <HEAD><TITLE>JSP Test</TITLE></HEAD>
    <BODY BGCOLOR="#FDF5E6">
    <H1>JSP Test</H1>
    Time: <%= new java.util.Date() %>
    </BODY></HTML>I am getting so frustrated I feel like I have tried everything...

    Thanks for your feedback, I tried all suggestions but still no luck.
    One thing I didn't mention previously was I have also tried the following (note: I have omitted the prefix "%CATALINA_HOME%/webapps"
    to all directory references below):
    1. installed my .jsp directly into /ROOT
    2. installed my .jsp into subdirectory /ROOT/hello
    3. installed my .jsp into /root_copy (identified as a running application by Tomcat manager)
    I think there must a problem in my deployment because the JSP examples (http://localhost:8080/jsp-examples/) compile fine...
    This indicates that JAVA_HOME is set correctly.
    Since my first post I tried installing tomcat from a windows installer into c:\apache\tomcat5.0.28\ and set logging to debug.
    Here's a small dump of 5 logs in localhost_log.2006-05-01.txt:
    2006-05-01 20:08:31 StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter]...
    2006-05-01 20:08:32 StandardContext[/jsp-examples]ContextListener: contextInitialized()
    2006-05-01 20:08:32 StandardContext[/jsp-examples]SessionListener: contextInitialized()
    2006-05-01 20:08:32 StandardContext[/servlets-examples]ContextListener: contextInitialized()
    2006-05-01 20:08:32 StandardContext[/servlets-examples]SessionListener: contextInitialized()Note there was no initialization of the context root_copy, but I'm unsure if there's any relevance here or not.

  • Dynamic select using jsp?

    grrrrr............ok so I'm kinda new to this, and just a little frustrated. I'm gonna ramble here, so any time I sound like I don't know what I'm talking about it 's because I don't..correct me. I want to include a bean in a jsp which will buil d a dynamic select box on the fly. That is, connect to an LDAP db and place each value returned in the query in a select box. Now, I can compile and run the bean in my IDE and watch the output in the console. It's correct because I see "<select><option value = hall>hall....</select>". In the buildSelectBox() method I'm using System.out.println to display each line of my select box (is that right?). Now, when I copy the .class file over to the server I was initially getting an error because the bean wasn't found. I resolved that by properly compiling the bean in a package. Problem is that if I call the bean.buildSelect() method in the .jsp nothing comes back. The page is left blank. What in the world is that about? Can someone push me toward a tutorial that can push me in the right direction or sumthin? Why am I having so much trouble with this? Should I be building the select on the jsp?
    regards,
    mat

    Hi!
    If i understand you correctly :-) you are doing not very right things. I don't want it to seem like I'm going to teach you, but:
    The Bean that has buildSelect() method is not a bean at all. Usualy Beans contain getter/setters and accumulate data. If you want to build html code dynamicaly then you should use servlets(Which is not very flexible in your situation, I think), not JSPs. And if you are using JSPs then you have to make Tag which will do this everything.
    Other way is to use Struts framework which is very good and flexible for building web applications - it has it's own tags for many cases. You can make loops in JSPs, use beans and all that stuff.
    Guys will correct me if I missed something.
    Good luck

  • Internal server error when I try to view my portlet jsp page

    Hi,
    I am a newbie on Oracle portal and extremely frustrated. Does this technology actually work?? I followed every single step in portlet developer guide and tried several times Java portlet/Oracle PDK portlet but this thing just doesnt work. Lately I have been getting this error when I get to the file on the http server:
    500 Internal Server Error
    java.lang.NullPointerException
         at htdocs.thirdportlet._ThirdPortletShowPage._jspService(_ThirdPortletShowPage.java:56)
         [SRC:/htdocs/thirdportlet/ThirdPortletShowPage.jsp:15]
         at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         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[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    Any help would be appreciated.
    Thanks
    SK

    How does one view a portlet? Registring a provider doesnt work as the portal doesn't pick up a deployed portlet. None of the the tutorials worked for me -- i.e., adding a parameter or an event.
    Please please help!
    SK

  • Trying to dynamic include HTML into a JSP

    All,
    I am trying to include an HMTL file into a JSP file. I wish to do this dymanically. So, the following is not an option:
    <%@ include file="relativeURL" %>
    So, I am forced to resort to such measures as the following:
    <jsp:include page="<%=myPath%>"/>
    However, I get the following error:
    java.lang.IllegalStateException: Response has already been committed
         at java.lang.Throwable.fillInStackTrace(Native Method)
         at java.lang.Throwable.fillInStackTrace(Compiled Code)....
    I tried it like this:
    <jsp:include page="<%=myPath%>" flush="true"/>
    I encoutered the same result. I have JSP 1.2 running Tomcat 3.1 with Apache 1.3.14, all on SunOS. Thanks in advance for any help.
    Nicholas

    One of the worst error messages you can get is the IllegalStateException. It simply means that an attempt has been made to forward or include but only a portion of the include was sent. In a situation like this the best way to handle the dynamic page content is to include it from a Servlet by sending the information you need through beans. Including the Servlet rather than the dynamic path would clear those errors right up. One thing to keep in consideration is that you can't just get the page and display it, you have to buffer it in so the state can be kept alive without timing out like it does with the dynamic include.
    Hope that helps. Been there, done that, I know how frustrating the error was.

  • Using JavaBean with JSP...will not work no matter what

    Hi guys. Sorry that this is such a common, newb question, but I don't know where else to turn.
    I'm new to web application development, Tomcat, and JSP. I'm trying to use a simple JavaBean in a JSP to store some user information. The JSP is located in $CATALINA_HOME\webapps\art , and the UserBean I'm trying to use is in $CATALINA_HOME\webapps\art\WEB-INF\classes . I've tried adding a context in the Tomcat server.xml file, but nothing seems to work, even putting the .class file into the \art directory along with the JSP. The error I get is the following:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 1 in the jsp file: /welcome.jsp
    Generated servlet error:
    [javac] Compiling 1 source file
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\art\welcome_jsp.java:43: cannot resolve symbol
    symbol : class UserBean
    location: class org.apache.jsp.welcome_jsp
    UserBean user = null;
    ^
    The source code is:
    welcome.jsp
    <%@ page import="java.sql.*" %>
    <jsp:useBean id="user" class="UserBean" scope="session"/>
    <html>
    <head>
    <title>Art Webapp Test</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <h1>Art Site</h1><br><br>
    <h3>Welcome Page</h3><br><br>
    <%
         user.setUsername("joe");
    user.setTitle("admin");
    %>
    </body>
    </html>
    UserBean:
    public class UserBean {
    private String username = null;
    private String title = null;
    public UserBean()
         this.username = null;
         this.title = null;
    public String getUsername()
         return this.username;
    public String getTitle()
         return this.title;
    public void setUsername(String inName)
         this.username = inName;     
    public void setTitle(String inTitle)
         this.title = inTitle;     
    }//UserBean
    Thanks for any and all help anyone could give me about this. It seems such a simple thing, to get a JavaBean working in a JSP...and it's very frustrating to have it NOT work when it seems I've done everything possible to get it to.

    Ok, I figured out what the problem was. My Bean was not a part of any specific package. It was never made clear to me that Beans are required to be a part of some package...I had no idea (though they always put them in packages in the tutorials, you think I would have picked up on it!).
    So I just added the following line to the Bean:
    package com.art;
    Then compiled it and copied the .class file to CATALINA_HOME\webapps\art\WEB-INF\classes\com\art
    Ta-da
    Thanks for the help and sorry for taking up space on this board.
    -Matt

  • Changes made in jsp pages not showing in weblogic 92

    Hi:
    I am using Weblogic 92.
    I ran an ant script and it copy the ear file
    to the following directory.
    C:\bea92\user_projects\domains\Inquiry\autodeploy
    This should autodeploy the application but it doesn't seemed to show the changes I made.
    I also copy the ear file to the following directory:
    C:\bea92\user_projects\applications\Inquiry
    and
    C:\bea92\user_projects\applications\Inquiry\autodeploy
    The worst part is even if I delete the ear files in the above directory and when I restarted weblogic 92, in the admin console it still shows it and when I tried to delete it, it says the ear file was deploy autodeploy and you must delete it manually something like that.
    But I already deleted it manually but it still shows in the weblogic console. This is very frustrating.
    In weblogic 8.1 I didn't use autodeploy and I don't have any of these type of problems!!
    I also noticed that in the directory:
    C:\bea92\user_projects\domains\Inquiry\servers\AdminServer\stage\_appsdir_inquiry_ear
    it contains an old ear file.
    What are the directory I have to updated exactly with the new ear files for the changes to show up in the application?
    Any help would be greatly appreciated.
    Yours,
    Frustrated
    Edited by jadeite100 at 03/22/2007 3:38 PM

    Hi, Shonda, I can find "Main Mode" for my Jdeveloper 9.0.5.0.0 at
    Tools -> Embedded Oc4j Server settings -> Global -> JSP Container.
    If you can not find this parameter as above, can you use the index search for "Jsp container" or full text search for "embedded oc4j"?
    Anyway, I believe there is way to confirm / change this parameter. At a last resort, you might search for files that contains "main_mode" or "main mode", case ignored, so as to get a clue where this parameter is stored.
    I have been using 9.0.3 oc4j for some time. If the main_mode is recompile, any change of my jsps is always reflected immediately.

  • The frustrating 'bug' of the oracle java page if you want 64 bit support.

    gosh, i wish there were a way to simply contact the oracle webmaster/webdev team. there isn't, as far as i can find. here's what i just emailed to [email protected] figured i'd share it here, on the outside chance someone at oracle might know how to escalate this:
    hi, this has frustrated me a number of times in the last year or two.
    go to the main java download page:
    http://www.java.com/en/download/manual.jsp
    i want the 64 bit java plugin. hey, there's a link "information about the 64-bit java plug-in", yay! click it, it goes to
    http://www.java.com/en/download/faq/java_win64bit.xml
    <read a bit through it> ah, there towards the bottom of the page, "java for 64-bit browsers, with the following text and link:
    "for downloading 64-bit java click 64-bit manual download". cool! click the link -
    http://www.java.com/en/download/manual.jsp
    it takes me right back to the main download page! it's an infinite loop!
    i eventually just google, and type in 'jre-7u5-win' and it autocompletes to 'jre-7u5-widows-x64.exe download, and the first result returned is to the actual page needed:
    http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1637588.html
    is there any chance y'all could fix this? i'm sure i'm not the only person frustrated by the circular results the main download page provides.
    thanks,
    paul

    Interesting... I have now tested on various Windows versions with various browsers, including FF, IE, and Safari. I even tested on my iPhone. It appears that the page attempts to identify your platform and browser and displays differences in the page based on that result. So, for example, on my iPhone (in Safari) and Linux (with FF) where I know I can't use java or at least one for Windows, the page resembles what you described. However, on all my Windows machines (regardless of browser) the page displays properly.
    So the questions to you is, are you doing this on a Windows machine or something else? If not Windows, this is why you are having the issue. If you want to download a Windows release while running a Linux, Mac, or other platform, you should use the method I described in my previous post of using java.sun.com then choosing Java SE under Top Downloads.
    If you are on a Windows platform, but are seeing this issue, be sure your browser version is current and ensure that you do not have a security setting or security software which may be preventing this page from properly detecting your platforms.
    Edited by: Michael Ferrante (Oracle) on Aug 1, 2012 9:58 AM

  • Problem using jsp:include from inside a custom tag

    Hi, All !
              I have a problem using <jsp:include> from inside a custom tag. Exception is:
              "java.lang.ClassCastException: weblogic.servlet.jsp.BodyContentImpl"
              Apparently, weblogic tries to cast BodyContentImpl to JspWriterImpl and
              could not do this. Is it a bug, since in the 1.1 spec is said: "The
              BodyContent is a subclass of JspWriter that can be used to process body
              evaluations so they can retrieved later on."
              My code is:
              <wfmklist:items>
              <jsp:include page="item.jsp" flush="true"/>
              </wfmklist:items>
              

    This is an area of contention with WL. It is not so tolerant with regards to
              the spec. I spent several days recently trying to convince it to accept the
              specification in regards to bodies and includes and it appears to have
              successfully rebuffed my efforts.
              Frankly, this is very disappointing. It appears that some shortcuts were
              taken on the way to JSP 1.1 support, and the result is a very hard-coded,
              inflexible implementation. As I have not seen the implementation myself, I
              hate to assume this, however one could posit that the term "interface" was a
              foreign concept during the implementation, other than as some annoying
              intermediary reference requiring an immediate cast to a specific Weblogic
              class, which in turn is apparently required to be final or have many final
              methods, as if being optimized for a JDK 1.02 JIT.
              I am sorry that I don't have any positive suggestions other than to use a
              URL object to come back in an execute the necessary "include" directly. You
              lose all context (other than session) and that can cause its own problems.
              However, you can generally get the URL approach to work, and you will
              hopefully avoid further frustration.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com
              Tangosol: How Weblogic applications are customized
              "Denis" <[email protected]> wrote in message
              news:[email protected]...
              > Hi, All !
              > I have a problem using <jsp:include> from inside a custom tag. Exception
              is:
              > "java.lang.ClassCastException: weblogic.servlet.jsp.BodyContentImpl"
              >
              > Apparently, weblogic tries to cast BodyContentImpl to JspWriterImpl and
              > could not do this. Is it a bug, since in the 1.1 spec is said: "The
              > BodyContent is a subclass of JspWriter that can be used to process body
              > evaluations so they can retrieved later on."
              >
              > My code is:
              > ...
              > <wfmklist:items>
              > <jsp:include page="item.jsp" flush="true"/>
              > </wfmklist:items>
              > ...
              

Maybe you are looking for

  • Reporting: Table / Tcode for Payment Terms change history in posted documents

    Hi everyone, First of all, thanks in advance for your help on this one. Please let me know the Table name where we can see the previous Payment Terms and revised payment terms of documents in a specific company code. For example: if a document had pa

  • Ek01 / EK02 Ist & Plan Cost in Repair order

    Hello Gurus, I´m working in Customer Service. I generate a service order automatically from a sales order item. My service order is copied from Standard SM03. After Confirmation IW42, I perform a DP90 in order to transfer all costs & articles used in

  • How do I cancel Adobe ExportPDF?

    I purchased it to convert a PDF that was not printing clearly with the expectation that once in word I could change the font. Having done the conversion - the document is unusable and in many places totally unreadable. Given the quality of the output

  • CREATING IMAGE FILE

    Hi there, I have an "java.awt.Image" object with me. I am trying to create a file by using this "Image" object. Please help me by showing some code or by giving some tip. thanks in advance sudhakar

  • Fails to load modules while lauching Xfce4 (SOLVED)

    When I type "startxfce4" I get something like this: Failed to load module: sis (module does not exist, 0) Failed to load module: vga (module does not exist, 0) Failed to load module: vesa (module does not exist, 0) Failed to load module: mouse (modul