Apache with Jsp

Hi,
Before install oracle 9i on my PC (platform 2WK). I have been installed apache and tomcat, they are work and functional on my PC. Also, I can use IE browser to open my homepage which is written by JSP. After I installed oracle 9i, when I use IE browser to open my homepage, the message box comes up with the question of "Realm" and ask user name and password.
I really don't know what's going on?
Please anyone can help me? I just want my homepage can access with database.
Thanks.
Amy

By default Tomcat uses port 8080 and I believe the Oracle HTTP Server uses 8080 as well. Make sure that they are not running on the same ports.

Similar Messages

  • UNSUPPORTED : The way it works Apache with OC4J via AJPV13 with mod_jk

    RDBMS Version: 8.1.7.x
    Operating System and Version: SUSE Linux 7.2 / Win NT/2k/XP
    Product (i.e., OAS, IAS, etc): 9ias 1.0.2.2 OC4J 9.0.2.0.0
    Product Version:
    JDK Version: 1.3.1
    Error number:
    UNSUPPORTED : The way it works Apache with OC4J via AJPV13 with mod_jk
    We dont want to use the lame and old mod_jserv so we want to use oc4j but in connection with Apache.
    This is like mod_oc4j in the Oracle 9ias Release 2
    This guide is for advanced users !
    Step-by-Step :
    1) get Tomcat 3.3 for linux or nt with Apache module mod_jk
    http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/bin/
    2) add mod_jk module to httpd.conf (9ias) and comment all mod_jserv, dms, oproc, ojsp ....
    LoadModule jk_module libexec/mod_jk.so
    Include mod_jk.conf
    3) edit mod_jk.conf
    JkMount /*.jsp ajp13
    JkMount /servlet/* ajp13 JkMount /servlets/* ajp13
    <Location "/WEB-INF/"> AllowOverride None
    deny from all
    </Location>
    3) edit workers.properties
    workers.tomcat_home=/opt/oracle/ias/oc4j/j2ee/home
    workers.java_home=/usr/java
    worker.list=ajp13
    worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13
    4) edit http-web-site.xml (oc4j)
    <web-site host="localhost" port="8009" protocol="ajp13" display-name="Oracle9iAS Containers for J2EE HTTP Web Site">
    5) start oc4j
    java -verbose -jar oc4j.jar
    6) start apache (look in error_log)
    apachectl startssl
    7) try to request a jsp page or servlet ..
    http://localhost:7777/test.jsp
    8) good luck it works fine .. !!
    Matthias Roth
    Technical Manager
    Z|rich Investmentgesellschaft mbH
    [email protected]

    Thanks for the tip Mathias, it's always good to see people trying out experimental things with the products.
    We're providing a new module (mod_oc4j) with our Oracle9iAS Release2 product to do this directly from the Oracle HTTP Server (Apache). We've re-written bits and pieces of the module to improve it's performance. Likewise, we've also integrated mod_oc4j with our HA story so it will be notified when new OC4J instances are brought online or if existing ones go down, enabling it to actively route requests around the available OC4J instances.
    Thanks again!
    -steve0

  • Integrating Web server (eg Apache) with the application server

    I am thinking a project in which I use more static HTML files than JSPs. One way is to use an Apache server to display those HTML files (it should be faster), and deploy the JSPs into the J2EE server; another way is just simple to change the web container�s port to 80 (of the PE 8), and wrap all the files into a war file and deploy it into the application server.
    So can someone advise my which way is better? And if I use the first one, I�d like to know if it is the same way to integrate Apache with Tomcat.
    Thank you very much!

    In the past there has been a belief that the Apache web server serves static content faster than tomcat. Site managers would configure apache to deliver static content and integrate a web container to handle the dynamic content. I believe this argument is losing steam as tomcat gets better. I guess the only way you will know for sure is to deploy your application in PE 8.0 and then in an apache/web container configuration and do some benchmarking. I have no such benchmark data to compare and I base my comments on what I have read in newsgroups over the past months. Personally, I would opt for the app server only setup just to ease configuration. Others may have a different opinion.

  • Using java bean with jsp

    hello friends,
    i'm new to jsp. i want to create an html form that accepts username and a value from four radio buttons and display back the entered name and checked radio button's value using java bean.
    i use the <jsp:setProperty id="" property="*"> method. i don't know how to access the radio buttons value from the html.
    also when i use an additional field other than username the jsp page is showing error.
    Please give me the correct method to use java bean with jsp in this circumstance.
    thank you.

    thank you, but i have a problem left. the case is like this.
    i got the jsp and bean worked fine when i have a sinle input text field.
    but when i added a second text field i recieved the following error.
    javax.servlet.ServletException: basket.newbean.getUserPass()Ljava/lang/String;
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
         org.apache.jsp.newform.process_jsp._jspService(process_jsp.java:69)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         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)
    where userPass is the new form element. I have made the subsequent chanes in my bean program and jsp file.
    pls hlp.

  • Apache with Tomcat cluster

    Hi, I integrated Apache with Tomcat Cluster on Windows 2000. I instalated mod_jk2.dll, created workers2.properties and configurated server.xml in Tomcat instances. If I try to reach my .jsp file, e.g. http://localhost/root/main.jsp, I get follow message from Tomcat: source root/main.jsp is not available. What�s wrong? Can anybody help me? Apache version: 2.0.47, Tomcat: 1.4.27

    Well, the first order of business is to determine exactly where main.jsp is located. If it is at <CATALINA_HOME>/webapps/main.jsp, then it should be at http://localhost:8080/main.jsp. Bypass Apache and verify that you can get to the Tomcat specific pages first.
    Basically, we're trying to determine a) the correct URL and b) whether the problem is with Tomcat itself, or with the connections between Apache and Tomcat.
    Essentially, we can't tell you where your configuration is incorrect until you tell us what your configuration is. :)

  • Apache with JServ or Tomcat?

    What�s your preferences in relation with JSP web server: Apache with JServ module (or another want you considerer better) or Jakarta-tomcat?
    I have used both, but I don�t know exactly which one I should use in my new job.
    Thank you everybody and good luck!

    JServ, while fine in its time, is now outdated and will not be updated. If you want to use any features added to the JSP or Servlet API's in recent years, you need to use Tomcat.

  • Integrating JasperReports with JSPs

    I'm developing a web application using JSPs on windows 2000 machine. I'm using apache+tomcat as the web server. Using Jasper Reports for report generation.
    Currently i'm developing reports using HTML. At the bottom of that report page i've a button named 'Export to Excel'. Upon clicking it, i'm exporting the html report to excel. Since i'm unable to include header and footer information and repitition of some fields on every page, i selected Jasper Reports for report generation. My problem is i don't know how to integrate Jasper Reports with JSPs. I don't know how to create reports. I created smaple reports using iReport visual editor for jasper reports. Now i want to integrate it with my we application.
    If anyone has any idea, please inform.
    Thanks.

    RTFM
    http://jasperreports.sourceforge.net/quick.how.to.html#classes
    Main classes to use when working with JasperReports
    net.sf.jasperreports.engine.JasperCompileManager
    net.sf.jasperreports.engine.JasperFillManager
    net.sf.jasperreports.engine.JasperPrintManager
    net.sf.jasperreports.engine.JasperExportManager
    This classes represent a fa���ade to the JasperReports engine. They have various static methods that simplify the access to the API functionality and can be used to compile an XML report design, to fill a report, to print it, or to export to PDF, HTML and XML files.
    net.sf.jasperreports.view.JasperViewer
    This can be used to view the generated reports.
    net.sf.jasperreports.view.JasperDesignViewer
    This can be used to view the report design.
    http://jasperreports.sourceforge.net/tutorial/index.html
    JasperReports is a powerful open source reporting tool that has the ability to deliver rich content onto the screen, to the printer or into PDF, HTML, XLS, CSV and XML files. It is entirely written in Java and can be used in a variety of Java enabled applications to generate dynamic content.
    Its main purpose is to help creating page oriented, ready to print documents in a simple and flexible manner.
    JasperReports organizes data retrieved from a relational database through JDBC according to the report design defined in an XML file. In order to fill a report with data, the report design must be compiled first.
    The compilation of the XML file representing the report design is performed by the compileReport() method exposed by the net.sf.jasperreports.engine.JasperManager class.
    Through compilation, the report design is loaded into a report design object that is then serialized and stored on disk (net.sf.jasperreports.engine.JasperReport). This serialized object is then used when the application wants to fill the specified report design with data. In fact, the compilation of a report design implies the compilation of all Java expressions defined in the XML file representing the report design. Various verifications are made at compilation time, to check the report design consistency. The result is a ready to fill report design that will be then used to generate documents on different sets of data.
    In order to fill a report design, one can use the fillReportXXX() methods exposed by the net.sf.jasperreports.engine.JasperManager class. Those methods receive as a parameter the report design object, or a file representing the specified report design object, in a serialized form, and also a JDBC connection to the database from where to retrieve the data to fill the report.
    The result is an object that represents the ready to print document (net.sf.jasperreports.engine.JasperPrint) and can be stored onto the disk, in a serialized form, for later use, or can be delivered to the printer, to the screen or can be transformed into a PDF, HTML, XLS, CSV or XML document.

  • Newbie - How to get started with JSP?

    Hello,
    I am new to JSP and Java. I have NT server with Option pack 4.0 Installed (IIS/MTS). Can I use the same machine to learn/develop JSP? What software do I need to run/develop JSP? What development software do you recommend to develop JSP? (Example: for ASP I would recommend Visual Interdev).
    Thank you very much.
    Regards,
    JS

    Software use JRun Server from macromedia
    http://www.macromedia.com/downloads/
    This is evaluation version.
    For beginners 'JavaServer Pages by Aneesaha Bakharia' is fairly easy - code and pictures. It has a cd with JRun on with no time limitation but is not full version but will get you going. I was up and running in a few mins.
    You will have to download additional software to complete the whole book.
    More advanced: Wrox book Professional JSP - can't remember full name is good.
    Once you know a bit can use apache with mysql database.
    It will help if you know a bit of Java I find sun's website has improved recently and has good tutorials. It didn't have last year. Also for JSP info Javaworld.com is good it has articles with zip files you can use.
    Enjoy
    James

  • What  kind of classes I can use with JSP in tomcat? Please Help

    Hi people, I tried use the classes that I did for others application and it throw this exception :
    "org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Compiling 1 source file
    D:\Apache Group\Tomcat 4.1\work\Standalone\localhost\_\matriculaOnLine\valide_jsp.java:14: cannot access matriculaOnLine.Connect
    bad class file: D:\Apache Group\Tomcat 4.1\webapps\ROOT\WEB-INF\classes\matriculaOnLine\Connect.class
    class file contains wrong class: Conexao
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    private Connect conn = new Connect(driver,url,login,password);
    ^
    1 error"
    I used the Connect class with java apps and it work but with JSP on TomCat4.1.27
    Can someone help me, please?
    Tiago - [email protected]

    Hi Tiago,
    I have some problems in my mind.
    Which databse you are using? and Which database driver you are using for connecting database?
    Also can you please give a code snapet that you written for connecting databse?
    ----------Milind

  • What kind of database can I use with jsp pages?

    Well I have been an ASP programer for a while and now I want to be able to host sites on an Apache server so that means i need to just jsp pages or something that is not windows dependant. So I need to start a database, a small one just for client information, and I don't know what to create it in. I was going to use MS acess but I am guessing that won't work with jsp. So what are my options for desktop database applications? Should I download star office and try that I havne't ever used that but I imagine it comes with some kind of database program. Well let me know thanks.

    JSP should work with any database that worked with ASP. The key is to use JDBC which is the equivalent to ADO. As long as you get the appropriate driver for the database, you're all set. As the previous poster mentioned, for MS Access you must use a JDBC-ODBC bridge which is really a JDBC driver that works on top of ODBC. This is the worst performing type of driver, but if you're using MS Access then perhaps performance isn't a priority.
    Check out the Sun tutorial on JDBC if interested.

  • Problems with JSP in Firefox

    I have seen several references to this problem on this forum but no real solution on any of the pages I have found. My jsp, which right now is no more than a static HTML page with jsp as the extension so that I can add the java code later, will not display in firefox it only shows the source code when I go to my website. Some example code is below.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
         <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
         <title>
              Sichutech.com
         </title>
         <link rel="stylesheet" href="theme/NewMaster.css" type="text/css">
    </head>
    <body>
              <div class="spacer"> </div>
              <div id="banner" align="left">
                    <img src="images/logocropped.png">
              </div>
                        <br class="clearboth">
                        <div class="spacer"> </div>
                        <div id="row1col1" align="left">
                   <img src="images/home.png"><br>
                   <img src="images/mission.png"><br>
                   <img src="images/about.png"><br>
                   <img src="images/services.png"><br>
                   <img src="images/contactus.png">
              </div>
              <div id="row1col2" align="left">
                   <img src="images/worldwide.png"><br><br>
                   <p>
                        <b>Stand alone application development:</b><br><br>
                        We provide stand-alone application development for businesses of any size.
                        Our applications are developed in Java using best standards and practices.
                   </p>
                   <p>
                        <b>Web Development:</b><br><br>
                        We provide custom web development for businesses of any size. We use J2EE
                        technologies to develope all web applications. These technologies consist
                        of Java, Javascript, Java Beans, HTML, JSP, XML, and other technologies as
                        applicable.
                   </p>
                   <p>
                        <b>Questions:</b><br><br>
                        For a quote on a custom stand-alone or web application to meet your business
                        needs please contact us through the contact us page.
                   </p>
              </div>
              <br class="clearboth">
              <div class="spacer"> </div>
              <div id="footer">
                   Home 
                   Mission
                   About Us
                   Services
                   Contact Us
                   &#149;
                   Copyright &copy; Sichutech 2008 All Rights Reserved
              </div>
              <br class="clearboth">
         </body>
    </html>
    The website is up and running and displays fine in IE but not firefox. The site address is www.sichutech.com
    Any help is greatly appreciated.
    Thanks,
    Robert

    Here is what I see at the response headers:
    Date: Wed, 06 Aug 2008 02:37:52 GMT
    Server: Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8b DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 mod_jk/1.2.25 mod_perl/2.0.4 Perl/v5.8.8
    Last-Modified: Mon, 04 Aug 2008 22:42:24 GMT
    Etag: "aa0088-602-453aa0d911400"
    Accept-Ranges: bytes
    Content-Length: 1538
    Content-Type: text/plain
    X-Antivirus: avast! 4
    X-Antivirus-Status: Clean
    200 OKNote the content type: it is text/plain instead of text/html. And FireFox interpreted it correctly as text/plain.

  • Crystal Report 11 with JSP

    Hi....
    Presently i am working on Crystal Report 11 with JSP. I am using the following code. But getting some error with this code. Please me about this error.
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@page import="com.crystaldecisions.reports.sdk.*"%>
    <%@page import="com.crystaldecisions.sdk.occa.report.reportsource.*"%>
    <%@page import="com.crystaldecisions.sdk.occa.report.lib.*" %>
    <%
    String reportName="report1.rpt";
    try
         Object reportSource=session.getAttribue("reportSource");
         if(reportSource==null)
              ReportClientDocument oReportClientDocument=new ReportClientDocument();
              oReportClientDocument.open(reportName,0);
              reportSource=oReportClientDocument.getReportSource();
              session.setAttribute("reportSource",reportSource);
              response.sendRedirect("CrystalReportViewer.jsp");
         catch(ReportSDKException e)
                   out.println(e);
    %>
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 6 in the jsp file: /c.jsp
    Generated servlet error:
    The method getAttribue(String) is undefined for the type HttpSession
    An error occurred at line: 6 in the jsp file: /c.jsp
    Generated servlet error:
    ReportClientDocument cannot be resolved to a type
    An error occurred at line: 6 in the jsp file: /c.jsp
    Generated servlet error:
    ReportClientDocument cannot be resolved to a type
    Thanks & Regards
    Rama Rao

    Hi Debbie,
    Moved your post to the Legacy forum. Search here for more info. Lots of links and info for Delphi and what is no longer supported...
    Thank you
    Don

  • Modify Collection with jsp:setproperty

    Hello:
    I have a problem with jsp and struts.
    I have a collection of items (List) and view the elments in jsp page. This It works fine.
    But the problem happens when i like modify the collection.
    The code to view the collection in jsp is:
    <jsp:useBean id="ItemListForm" class="com.myapp.struts.ItemListForm" scope="session" />
    <html:form action="/ItemEditAction" >
    <logic:iterate name="ItemListForm" property="listaItems" id="item" >
    <P>
    <BASEFONT SIZE="3">
    <jsp:getProperty name="item" property="etiqueta" />
    </BASEFONT>
    <P>
    <jsp:getProperty name="item" property="grafico"/>
    <P>
    </logic:iterate>
    <P>
    <html:submit>Save File</html:submit>
    <html:hidden property="do" value="saveXML"/>
    </html:form>
    The question is:
    How to modify the element "grafico" with jsp:setproperty.
    Thanks for all.

    Thank you, I had forgotten the set part, but then the next problem occurs:
    <jsp:setProperty name="date" property="locale" value="${locales.locale}"/>
    generates:
    org.apache.jasper.JasperException: Unable to convert string '${locales.locale}' to class java.util.Locale for attribute locale: java.lang.IllegalArgumentException: Property Editor not registered with the PropertyEditorManager
    could I only use Strings as input?

  • Cron works with JSP?

    In Apache, there's a Cron... but does it work with JSP? if it doesn't, is there any job scheduler for JSP?

    tuckker wrote:
    But if I call a JSP file from Cron??? Will Cron be able to process the JSP file/Well, let me ask you this, can you "call" a JSP file from command line? Okay then.
    Now, if this "Cron" module operates by making (or simulating, if it is an Apache Web Server module) http connection to the server, then yes, it can, if not, then, as above, no it can't.

  • SQL query with JSP and WML-parameters

    Hey,
    Could you help me?
    I'm trying to do the following. WML deck card 1 send parameter to same WML deck's card help. I try to read the parameter with JSP in card help by putting the parameter to SQL query, but it doesn't work. I can read the parameter with WML in card help. I can also print the value of the parameter with JSP if I generate WML with JSP.
    /*parameter sending from card 1 to card help*/
    out.println("<go href='#helpcard'>");
    out.println("<setvar name='valittukurssi' value='$(valittukurssi)'/>");
    /*parameter read with WML in card help */
    <p>Valitse kurssi.
    $valittukurssi</p>
    /'parameter read with JSP by generating WML with JSP*/
    out.println("<p>$valittukurssi</p>");
    /* SQL query with JSP */
    ResultSet uudettulokset = uusilause.executeQuery("select * from kurssi where lyhenne='$valittukurssi'");
    Thanks,
    Rampe

    You're problem is easy to fix. You're confusing WML variables with JSP variables. See below:
    >
    /*parameter sending from card 1 to card help*/
    out.println("<go href='#helpcard'>");
    out.println("<setvar name='valittukurssi'
    value='$(valittukurssi)'/>");
    Above you set a var that will work on the phone, not in JSP.
    /*parameter read with WML in card help */
    <p>Valitse kurssi.
    $valittukurssi</p>
    Yes the above does display the parameter, because it is a client side WML var, but you cannot use this variable in the JSP code (that's why your SWL fails).
    /'parameter read with JSP by generating WML with
    JSP*/
    out.println("<p>$valittukurssi</p>");Here's you're problem, the above line is EXACTLY the same as the one before it. When the container parses through this JSP code it translates the above line to:
    <p>$valittukurssi</p> on the WML page and the CLIENT uses it's local variable to display it.
    What you need and want is to have a variable that can be used in JSP code and output to your WML page. Here's how it's done:
    out.println("<go href='#helpcard'>");
    String some_name = "valittukurssi";
    out.println("<setvar name='"+some_name+"'
    value='$("+some_name+")'/>");
    //note that you may have to escape the ( and ) with a \
    //so we displayed the variable above into the WML page, now we can use it in the SQL query:
    /* SQL query with JSP */
    ResultSet uudettulokset =
    uusilause.executeQuery("select * from kurssi where
    lyhenne='"+some_name+"'");//the end of the command is: " ' " ) ;
    Frank Krul
    Got Node?

Maybe you are looking for

  • Scrap Percentage Field in Asset Master

    Hii Experts, scrap value in main asset and sub number different. i want to have scrap value different between main asset and sub number example asset number 123-0 scrap value = 1 asset number 123-1 scrap value = 0 asset number 123-2 scrap value = 0 I

  • Installation problems in Snow Leopard & Snow Leopard Server

    1. I have a big problem if I had to live with SL Server, whether I should install software in Administrator Account or a Standard Account(Which many people told us to create a Standard Account for better security and stability), but there are problem

  • Unable to re-install Snow Leopard after upgrading to Mavericks

    I upgraded to Mavericks before realizing that my USB microphone interface would no longer work with Mavericks due to the manufacturer not updating drivers... So I need to revert back to Snow Leopard. I don't have a time machine backup from snow leopa

  • Audio distortion and clipping from imported AVCHD

    I just built a new computer that works great for video and is now playing back AVCHD no problem. The sound however, is the same as before. It sounds like really really bad over clipping, straight from the RAW imported video... Sounds fine on the came

  • JMS with Eclipse

    HI I downloaded the example for JMS for J2EE 5. But I see these examples are developed in Netbeans... and the problem is particularly during compilation using ant... which depends on NetBeans. How do I proceed with running these examples in Eclipse?