Problems configuring jsp and weblogic.

Hi,
          can anyone tell me what all things i need to configure if i have to test jsp
          on weblogic. what things i need to include in web.xml and weblogic.xml. Also
          do i need to create weblogic.properties. I m using weblogic 6.0. I do have
          a jar file which is deployed on weblogic.
          Any help will be appreciated.
          Thanks
          -Shree
          

Hi,
          I m trying to test a html page on weblogic 6.0. when i type the url
          http://localhost:7001/mytest.html i get following errors. I m not able to
          test any of my jsp pages. I m getting the following error....
          <Jul 23, 2001 5:04:04 PM EDT> <Error> <HTTP> <HttpServer(6962399,null
          default ct
          x,localhost) found no context for "GET /mytest.html HTTP/1.0". This should
          not h
          appen unless the default context failed to deploy.>
          can any one tell me what are the steps / things i should consider for
          testing a jsp (web.xml, weblogic.xml...etc...)using weblogic 6.0 i do not
          want to deploy it i want to test using exploded directory format. My Jsps
          are in turn retrieving information from EJB's.
          I did read quickstart guide in e-docs.bea.com.
          Any help in this matter is appreciated.
          Thanks
          -Shree
          "Shree Unde" <[email protected]> wrote in message
          news:[email protected]...
          > Thanks.
          > -Shree
          > "Kumar Allamraju" <[email protected]> wrote in message
          > news:[email protected]...
          > > http://e-docs.bea.com/wls/docs60/quickstart/quick_start.html
          > >
          > > Shree Unde wrote:
          > >
          > > > Hi,
          > > > can anyone tell me what all things i need to configure if i have to
          test
          > jsp
          > > > on weblogic. what things i need to include in web.xml and
          weblogic.xml.
          > Also
          > > > do i need to create weblogic.properties. I m using weblogic 6.0. I do
          > have
          > > > a jar file which is deployed on weblogic.
          > > >
          > > > Any help will be appreciated.
          > > >
          > > > Thanks
          > > > -Shree
          > >
          >
          >
          

Similar Messages

  • How to configure apache and weblogic in windows 2000

    i am novice,
    i want to configure apache and weblogic in windows 2000
    weblogic version is 6.1
    apache version is 2.0
    how to do?

    George,
    I would take the following 'first steps'
    1)Install Apache20 on your Windows machine following the Apache online documentation
    http://httpd.apache.org/docs-2.0/misc/tutorials.html
    2)Make sure you can 'serve up' static HTML content from your Apache Server
    3)Install Weblogic Server per our online documentation
    http://edocs.bea.com/wls/docs61/install/index.html
    4)Also, make sure you can 'serve up' both static and dynamic (e.g., JSP) content
    directly from WLS server
    5)Once you have both of the above 'sanity' checks attempt to configure a simple
    proxy by ppath or mime type via our online documentation
    http://edocs.bea.com/wls/docs61/adminguide/apache.html#103803
    Chuck Nelson
    DRE
    BEA Technical Support

  • Problems with AM and WebLogic 8.1 sp3

    Hello,
    The following are my environment. (both on Solaris 10)
    - Sun AM
    - WebLogic 8.1 sp3
    I want to try an easy integration between AM and WebLogic. After I installed policy agent for WebLogic and properly configured. It seem to work at some basic level.
    When I try to access protected resource on WebLogic. The agent can intercept and redirect to AM's login page where I enter username and password. After I enter correct username and password, it will be redirected back to my protected resource. However, this time I got error 403 forbidden.
    I think this is because WebLogic doesn't know that I just already sign-in. There must be something needed to do to map AM's userid to WebLogic id.
    But I don't know how.
    Could someone give me some suggestion or point me to some documents? Thanks in advance.

    I meant creating a policy in the SAM web interface, where you can add the required rule (specifying resource) and the subjects to whom the policy is applicable.
    Of course, if you are using J2EE_POLICY, the URL policy is of no consequence. The best practice is to use amFilter.mode = ALL, where the J2EE policies are enforced and verified by the application / app server, and the URL's are protected by SAM as well. In that case, the user has to be authorized by both SAM as well as J2EE to access the application.
    This, of course, is subject to the "best of my knowledge" clause!

  • Problems with JSP and MySql bean.

    Hi,
    I'm new to JSP and I'm having some problems with it. I'm trying to do a simple login where a java class (bean?) handles the SQL injektion. I have deployed the page on tomcat and it works fine, except that the sqlinjektion does basically nothing. I have installed the mysql driver. I think there is something wrong with the java class, or the way im calling it. It does not produce any error. But its like it would never actually process the java code, because ive tried to append things to error string to see what is going on, nothing happens. everything stay null, no exceptions are thrown. If I implement the code to JSP itself, it does load the driver and print exception that there is no connection to database (which is correct). What am I missing? Code follows:
    the sqlhandler:
    public abstract class SqlInjektor {
         private static String Database = "*****";
         private static String serverName = "localhost:3306";
         private static String usrName="******";
         private static String passw="******";
         * @return Connection
         public static Connection createConnection(String error){
              Connection mySqlCon = null;
              try{
                   Class.forName("com.mysql.jdbc.Driver").newInstance();
              catch(Exception E){
                   PrintWriter out = response.getWriter();
                   out.println("lol");
              String url = "jdbc:mysql://" + serverName + "/" + Database + "?user=" + usrName + "&password=" + passw;
              try{
                   mySqlCon = DriverManager.getConnection(url);
              catch (Exception E){
                   E.printStackTrace(System.out);
              return mySqlCon;
         * Metodi saa sy�tteen��n SQL komennon, jonka se suorittaa sek� palauttaa komennon tulokset.
         * @param command
         * @return ResultSet
         public static ResultSet querySQL(String command,String error, Connection con){
              ResultSet rs = null;
              try{
                   Statement stmt = con.createStatement();
                   rs = stmt.executeQuery(command);
              catch(Exception E){
                   E.printStackTrace(System.out);
              return rs;
    the jsp page:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ page isErrorPage="false" %>
    <%@ page import="java.sql.*" %>
    <%@page import="ot3.User"%>
    <%@page import="ot3.SqlInjektor"%>
    <%@page import="Javax.servlet.jsp.*"%>
    <!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>vastaanotto</title>
    </head>
    <body>
    <%!      String id;
         String password;
         String error = new String("Error!\n");
         User user;
    %>
    <%      user = new User();
         session.putValue("currentUser",user);
         id = request.getParameter("authName");
    password = request.getParameter("Password");
         Connection conn=null;
         ResultSet rs=null;
         conn = SqlInjektor.createConnection(error);
         if(conn!=null){
              out.println("conn ok!");
              rs = SqlInjektor.querySQL("SELECT * FROM user WHERE id='" + id +"' AND password='" + password+"' COLLATE latin1_bin;",error,conn);}
         try {
              if (rs!= null && rs.next()){
                   user.setID(rs.getInt("id"));
                   user.setName(rs.getString("name"));
                   user.setPassword(rs.getString("password"));
                   user.setClearance(rs.getInt("clearance"));
                   if(rs.getString("addedby")!=null)
                        user.setAdder(rs.getInt("addedby"));
                   if(rs.getString("lastmodifier")!=null)
                        user.setModifier(rs.getInt("lastmodifier"));
                   rs.close();%>
                   ONNISTU!
              <%}
              else {
                   out.println(error);     
         } catch (SQLException e) {
              out.println(e.getMessage());
         }%>
    </body>
    </html>

    Hi,
    I'm new to JSP and I'm having some problems with it. I'm trying to do a simple login where a java class (bean?) handles the SQL injektion. I have deployed the page on tomcat and it works fine, except that the sqlinjektion does basically nothing. I have installed the mysql driver. I think there is something wrong with the java class, or the way im calling it. It does not produce any error. But its like it would never actually process the java code, because ive tried to append things to error string to see what is going on, nothing happens. everything stay null, no exceptions are thrown. If I implement the code to JSP itself, it does load the driver and print exception that there is no connection to database (which is correct). What am I missing? Code follows:
    the sqlhandler:
    public abstract class SqlInjektor {
         private static String Database = "*****";
         private static String serverName = "localhost:3306";
         private static String usrName="******";
         private static String passw="******";
         * @return Connection
         public static Connection createConnection(String error){
              Connection mySqlCon = null;
              try{
                   Class.forName("com.mysql.jdbc.Driver").newInstance();
              catch(Exception E){
                   PrintWriter out = response.getWriter();
                   out.println("lol");
              String url = "jdbc:mysql://" + serverName + "/" + Database + "?user=" + usrName + "&password=" + passw;
              try{
                   mySqlCon = DriverManager.getConnection(url);
              catch (Exception E){
                   E.printStackTrace(System.out);
              return mySqlCon;
         * Metodi saa sy�tteen��n SQL komennon, jonka se suorittaa sek� palauttaa komennon tulokset.
         * @param command
         * @return ResultSet
         public static ResultSet querySQL(String command,String error, Connection con){
              ResultSet rs = null;
              try{
                   Statement stmt = con.createStatement();
                   rs = stmt.executeQuery(command);
              catch(Exception E){
                   E.printStackTrace(System.out);
              return rs;
    the jsp page:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ page isErrorPage="false" %>
    <%@ page import="java.sql.*" %>
    <%@page import="ot3.User"%>
    <%@page import="ot3.SqlInjektor"%>
    <%@page import="Javax.servlet.jsp.*"%>
    <!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>vastaanotto</title>
    </head>
    <body>
    <%!      String id;
         String password;
         String error = new String("Error!\n");
         User user;
    %>
    <%      user = new User();
         session.putValue("currentUser",user);
         id = request.getParameter("authName");
    password = request.getParameter("Password");
         Connection conn=null;
         ResultSet rs=null;
         conn = SqlInjektor.createConnection(error);
         if(conn!=null){
              out.println("conn ok!");
              rs = SqlInjektor.querySQL("SELECT * FROM user WHERE id='" + id +"' AND password='" + password+"' COLLATE latin1_bin;",error,conn);}
         try {
              if (rs!= null && rs.next()){
                   user.setID(rs.getInt("id"));
                   user.setName(rs.getString("name"));
                   user.setPassword(rs.getString("password"));
                   user.setClearance(rs.getInt("clearance"));
                   if(rs.getString("addedby")!=null)
                        user.setAdder(rs.getInt("addedby"));
                   if(rs.getString("lastmodifier")!=null)
                        user.setModifier(rs.getInt("lastmodifier"));
                   rs.close();%>
                   ONNISTU!
              <%}
              else {
                   out.println(error);     
         } catch (SQLException e) {
              out.println(e.getMessage());
         }%>
    </body>
    </html>

  • Is there a problem with JMS and Weblogic?

              Hi,
              I am using JMS and Weblogic (Not Message Driven bean).
              My problem is that after some time my listeners disappears.
              I am sending them a message and instead of 6 listeners
              I get only 4 messages.
              So, My question is: Is there any problem working with JMS
              and Weblogic???
              Thanks,
              Tal.
              

    Too little information and a very vague question. Need more info.
              "Tal" <[email protected]> wrote in message
              news:[email protected]..
              >
              > Hi,
              > I am using JMS and Weblogic (Not Message Driven bean).
              > My problem is that after some time my listeners disappears.
              > I am sending them a message and instead of 6 listeners
              > I get only 4 messages.
              > So, My question is: Is there any problem working with JMS
              > and Weblogic???
              > Thanks,
              > Tal.
              

  • Problem with JSP and Java Servlet Web Application....

    Hi every body....
    I av developed a web based application with java (jsp and Java Servlets)....
    that was working fine on Lane and Local Host....
    But when i upload on internet with unix package my servlets and Java Beans are not working .....
    also not access database which i developed on My Sql....
    M using cpanel support on web server
    Plz gave me solution...
    Thanx looking forward Adnan

    You need to elaborate "not working" in developer's perspective instead of in user's perspective.

  • Configuring apache and weblogic 7.1

    have anyone tried connecting apache and weblogic 7.1. which service pack can be used for this purpose

    have anyone tried connecting apache and weblogic 7.1. which service pack can be used for this purpose

  • Problem JSP and WebLogic 5.1

    Hi!!!
    I have a problem that I�m trying to show some results of a table of a DB with a JSP...but I don�t obtain nothing like result,....I don�t know why...I would hope to see the information of my table, like a select of SQL.
    My code is:
    <%
    Connection conn = null;
    try {
    Class.forName("weblogic.jdbc.pool.Driver").newInstance();
    conn = DriverManager.getConnection("jdbc:weblogic:pool:Mypool");
    catch (Exception e) {
    e.printStackTrace();
    Statement stmt = conn.createStatement();
    stmt.execute("select * from cat_employee");
    ResultSet rs = stmt.getResultSet();
    while (rs.next()) {
    System.out.println(rs.getInt("key_1") + " - " + rs.getInt("key_2") + " - " + rs.getString("employee"));
    stmt.close();
    conn.close();
    %>
    Where cat_employee is the table name,
    key_1, key_2 are fields of cat_employee table, of type numeric
    employee is a field of cat_employee table, of type String
    I think that with getInt() method, I obtain a number and with getString() method, I obtain a string....but I haven�t the complete API documentation, only the following API link:
    http://www.weblogic.com/docs51/classdocs/javadocs/index.html
    And the information about getString() ang getInt() is very incomplete there, if somebody have information about a API complete I would be very thankful with you. I�m using weblogic 5.1 in my development enviroment.
    Thank you....

    Hi!!!
    (Your email direction doesn�t correct.....because my mail was returned to me....could you answer me to the following email: [email protected] please)
    Thank you to answer me......I was really worried.....because nobady had done that.....
    My problem is that I wish to do some queries to a table of a Municipalities DB, I have read about that....and according with the exemples....my JSP...should be running and executing very well....but I haven�t had success with that...:(
    My JSP file is:
    <!doctype html public "-//w3c//dtd html 3.2//en">
    <html>
    <!-- Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.-->
    <head>
    <title>Query of Municipalities</title>
    </head>
    <body bgcolor=#FFFFFF>
    <font face="Helvetica">
    <h1>
    <font color=#DB1260>
    Municipalities List
    </font>
    </h1>
    <%@ page import="
    weblogic.db.jdbc.*,
    weblogic.html.*,
    java.sql.*
    " %>
    <p>
    <%
    Connection conn = null;
    try {
    Class.forName("weblogic.jdbc.pool.Driver").newInstance();
    conn = DriverManager.getConnection("jdbc:weblogic:pool:DESAPool");
    catch (Exception e) {
    e.printStackTrace();
    Statement stmt = conn.createStatement();
    stmt.execute("select * from cat_municipio");
    ResultSet rs = stmt.getResultSet();
    while (rs.next()) {
    System.out.println(rs.getInt("cve_municipio") + " - " + rs.getInt("cve_sepomex") + " - " + rs.getString("desc_municipio"));
    stmt.close();
    conn.close();
    %>
    <p>Please call Mary with any updates ASAP!
    <p>
    <font size=-1>Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.
    </font>
    </font>
    </body>
    </html>
    My result obtained is the following:
    Municipalities List
    Please call Mary with any updates ASAP!
    Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.
    I don�t obtain nothing.....is like DB table were without information......but in reality the DB table has information.....and I can obtain it with the following JSP:
    <!doctype html public "-//w3c//dtd html 3.2//en">
    <html>
    <!-- Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.-->
    <head>
    <title>Query of Municipalities</title>
    </head>
    <body bgcolor=#FFFFFF>
    <font face="Helvetica">
    <h1>
    <font color=#DB1260>
    Municipalities List
    </font>
    </h1>
    <%@ page import="
    weblogic.db.jdbc.*,
    weblogic.html.*,
    java.sql.*
    " %>
    <p>
    <%
    Connection conn = null;
    try {
    Class.forName("weblogic.jdbc.pool.Driver").newInstance();
    conn = DriverManager.getConnection("jdbc:weblogic:pool:DESAPool");
    // Fetch all records from the database in a TableDataSet
    DataSet dSet = new TableDataSet(conn, "cat_municipio").fetchRecords();
    TableElement tE = new TableElement(dSet);
    tE.setBorder(1);
    out.print(tE);
    } catch (SQLException sqle) {
    out.print("Sorry, the database is not available.");
    out.print("Exception: " + sqle);
    } catch (Exception e) {
    out.print("Exception occured: " + e);
    } finally {
    if(conn != null)
    try {
    conn.close();
    } catch(SQLException sqle) {}
    %>
    <p>Please call Mary with any updates ASAP!
    <p>
    <font size=-1>Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.
    </font>
    </font>
    </body>
    </html>
    and with this JSP I obtain all the following information:
    Municipalities List
    CVE_MUNICIPIO CVE_SEPOMEX DESC_MUNICIPIO
    1 1 ACAJETE
    2 2 ACATENO
    3 3 ACATLAN
    4 4 ACATZINGO
    5 5 ACTEOPAN
    Now...I need that the first JSP work very well, because...with that way...I can do queries and obtain the needed results for showing them in the Browser......
    So...I hope you understand me, and you could help me please, because I don�t have idea why I don�t obtain the results of a simple query that I am trying to do...thanks.....
    Mary
    P.D. I also attempted with the following JSP...but the result is the same....I don�t obtain none result...
    <!doctype html public "-//w3c//dtd html 3.2//en">
    <html>
    <!-- Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.-->
    <head>
    <title>Query of Municipalities</title>
    </head>
    <body bgcolor=#FFFFFF>
    <font face="Helvetica">
    <h1>
    <font color=#DB1260>
    Municipalities List
    </font>
    </h1>
    <%@ page import="
    weblogic.db.jdbc.*,
    weblogic.html.*,
    java.sql.*
    " %>
    <p>
    <%
    Connection conn = null;
    try {
    Class.forName("weblogic.jdbc.pool.Driver").newInstance();
    conn = DriverManager.getConnection("jdbc:weblogic:pool:DESAPool");
    catch (Exception e) {
    e.printStackTrace();
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery("select CVE_MUNICIPIO, CVE_SEPOMEX, DESC_MUNICIPIO from cat_municipio");
    while (rs.next()) {
    System.out.println(rs.getInt(1) + " - " + rs.getInt(2) + " - " + rs.getString(3));
    rs.close();
    stmt.close();
    conn.close();
    %>
    <p>Please call Mary with any updates ASAP!
    <p>
    <font size=-1>Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.
    </font>
    </font>
    </body>
    </html>

  • Problems with IIS and Weblogic 6.0 Redirecting thru IIS

    Hi
    I have just installed Welblogic 6.0 and I am having problems with the configuration
    of the ISAPI Plugin.
    I created the iisproxy.ini file and then copied that into wlserver6.0/bin directory
    and copied the iisproxy.dll file into the inetpub/wwroot directory for iis to
    see
    Now when I type in my url, I get the default index.jsp page that bea supplied
    but when I try to go to the Admin tool, existing portals created or new portals
    added, I get the following error
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    Can any one help, here is my iisproxy.ini file
    below
    #This file contains initialization name/value pairs
    #for the IIS/weblogic plug-in
    WebLogicHost=localhost
    WebLogicPort=7501
    WlFowardPath=/weblogic
    SecureProxy=OFF
    PathTrim=/weblogic
    ConnectTimeoutSecs=20
    ConnectRetrySecs=2
    Bola

    Seems 6.0 has more than a few proxy problems. We are running IPlanet and have
    had no success in running the 6.0 proxy.
    FYI. We have started using the 5.1 proxy in 6.0 successfully; you might give
    it a try. Not sure we want to put this in production in this condition however.
    Matt Raible wrote:
    Has anyone been successfully able to get the IIS Proxy working with WLS 6.0
    on Win2K? I've been trying for days, working with a support engineer at BEA
    and everything, but no luck.
    Thanks,
    Matt

  • Cookie Problem  With JSP and Tomcat

    I have a tiny web application developed for my project thing.
    I am facing a problem while maintaining sessions with Cookie. I use Tomcat 3.2.1 Web Server and JSP 1.2 Specifications for my web application.
    I have created a page which creates a cookie and stores it in the client's PC, so when the same client visits the site, he can be remembered. Now while surfing the site in the same session, the site remembers the client. But once the client closes the browser and tries connecting to the site, he cannot be remembered. So I took a look into Temporary Internet Files of the client PC and found no cookie there. So where the cookie gets created and why does it disappears with the session. I have set a time limit of 1 year in the cookie.
    Now is that a Problem with Tomcat or with the configuration settings of IE in the client PC?? Or something else???
    Reply me Soon...

    Thanks for your reply.
    following is the code for how do i create a cookie...
    <%
         String custno = custBean.createPreferred();
         Cookie c = new Cookie("pc", custno);
         c.setVersion(1);
         c.setPath("/");
         c.setComment("PreferredCustomer");
         c.setDomain("think_machine");
    //think_machine is the name of the Web Server(Tomcat)
         c.setMaxAge(365*24*60*60);
         response.addCookie(c);
    %>
    And the code to read a cookie is..
         String custID = null;
         Cookie[] cookies = request.getCookies();
         for(int i = 0; i < cookies.length; i++)
              if(cookies.getName().equals("pc"))
                   custID = cookies[i].getValue();
                   break;
    One more thing I would like to let you know, that i access this from the same PC on which the Web Server is installed. Means the Server and the client are both one and the same PC.

  • Problem Configuring JSPs

              I'd be grateful for any help with this one:
              I'm trying run WebLogic's jsp examples but am unable to.
              I have set up weblogic.properties thus:
              weblogic.httpd.register.*.jsp=weblogic.servlet.JSPServlet
              weblogic.httpd.initArgs.*.jsp=pageCheckSeconds=60, compileCommand=c:/jdk1.2.2/bin/javac.exe,
              workingDir=c:/weblogic/myserver/classfiles,
              verbose=true,
              keepgenerated=true
              But when I try and hit one of the example JSPs I get the following exception:
              javax.servlet.UnavailableException: Couldn't find init param: compileCommand
              at weblogic.servlet.jhtmlc.PageCompileServlet.init(PageCompileServlet.java:83)
              So it seems that the property "compileCommand=c:/jdk1.2.2/bin/javac.exe" is causing
              problems, but that's the correct path, checked it a dozen times.
              Any ideas?
              Thanks
              Terrance
              

    oop... sorry Terrance... made a mistake in my correction....
              should read....
              weblogic.httpd.register.*.jsp=weblogic.servlet.JSPServlet
              weblogic.httpd.initArgs.*.jsp=pageCheckSeconds=60, \
              compileCommand=c:/jdk1.2.2/bin/javac.exe, \
              workingDir=c:/weblogic/myserver/classfiles, \
              verbose=true, \
              keepgenerated=true
              "Michael Kovacs" <[email protected]> wrote in message
              news:[email protected]...
              >
              > "Terrance Goldman" <[email protected]> wrote in message
              > news:[email protected]...
              > >
              > > I'd be grateful for any help with this one:
              > >
              > > I'm trying run WebLogic's jsp examples but am unable to.
              > >
              > > I have set up weblogic.properties thus:
              > >
              > > weblogic.httpd.register.*.jsp=weblogic.servlet.JSPServlet
              > > weblogic.httpd.initArgs.*.jsp=pageCheckSeconds=60,
              > compileCommand=c:/jdk1.2.2/bin/javac.exe,
              > > workingDir=c:/weblogic/myserver/classfiles,
              > > verbose=true,
              > > keepgenerated=true
              > >
              > > But when I try and hit one of the example JSPs I get the following
              > exception:
              > >
              > > javax.servlet.UnavailableException: Couldn't find init param:
              > compileCommand
              > > at
              >
              weblogic.servlet.jhtmlc.PageCompileServlet.init(PageCompileServlet.java:83)
              > >
              > > So it seems that the property "compileCommand=c:/jdk1.2.2/bin/javac.exe"
              > is causing
              > > problems, but that's the correct path, checked it a dozen times.
              > >
              > > Any ideas?
              > >
              > > Thanks
              > >
              > > Terrance
              > Terrance,
              >
              > You need to have a \ character at the end of each continuing line, like
              > shown below
              >
              > weblogic.httpd.register.*.jsp=weblogic.servlet.JSPServlet
              > weblogic.httpd.initArgs.*.jsp=pageCheckSeconds=60,
              > compileCommand=c:/jdk1.2.2/bin/javac.exe, \
              > workingDir=c:/weblogic/myserver/classfiles, \
              > verbose=true, \
              > keepgenerated=true
              >
              > -Michael
              >
              >
              >
              

  • Problem with JSP and servlet in Tomcat

    hello all,
    I have made a simple hello world in Eclipse and Tomcat, it works well on my localhost, but now that I try to run it on the server in our lab I got this exception:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Implementing class
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:272)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.IncompatibleClassChangeError: Implementing class
         java.lang.ClassLoader.defineClass1(Native Method)
         java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1815)
         org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:869)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1322)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)
         org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:127)
         org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:65)
         java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         java.lang.Class.getDeclaredConstructors0(Native Method)
         java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
         java.lang.Class.getConstructor0(Class.java:2640)
         java.lang.Class.newInstance0(Class.java:321)
         java.lang.Class.newInstance(Class.java:303)
         org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:148)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    I have transfered the web.xml file and lib and classes folder in a WEB-INF folder and also all the JSP files. I can see he JSP file, but the 'hello worl' does not work and gives this exception!
    Does any one have any idea what could be the problem?
    thanks a lot
    Mitra

    seems the web Server code previously loaded a class only when it was used rather than when it was referenced,
    ask your question in the tomcat-user mailing ! !!!

  • Problems between iPlanet and Weblogic

    Hi guys, I'm having a problem, we I try to access the application through the iPlanet. The iPlanet crash and it restarts again.
    I got this message on the errors log of the iPlanet
    [17/Sep/2009:11:42:48] catastrophe (14873): CORE3260: Server crash detected (signal SIGSEGV)
    [17/Sep/2009:11:42:48] info (14873): CORE3261: Crash occurred in NSAPI SAF wl-proxy
    [17/Sep/2009:11:42:48] info (14873): CORE3262: Crash occurred in function INTcrit_enter from module /opt/iplanet/bin/https/lib/libns-httpd40.so
    [17/Sep/2009:11:42:48] failure (14819): CORE3107: Child process closed admin channel
    [17/Sep/2009:11:42:48] fine (14819): CORE3061: signal_handler_thread: received signal 18
    [17/Sep/2009:11:42:48] fine (14819): CORE3049: Primordial process detected child 14873 died: status 11
    [17/Sep/2009:11:42:48] fine (14819): CORE3050: Is our child, will spawn replacement
    [17/Sep/2009:11:42:48] fine (14819): CORE3062: Unlinking of /tmp/https-emergo2.cert.sabre.com.443-3b90a480/.cgistub_14873 returned -1
    I can add the the iplanet we are using is the 6.1sp5 and the weblogic is the version 9. everything is working on sun 9.
    I'm going to appreciate any help.
    Thanks

    Did you get SSL authentication on iPlanet AND forwarding this to WLS
    working?
    We can do certificate based authentication on iPlanet and the plugin
    forwards this to WLS (6.0sp1). WLS does not do anything with it.
    Thanks,
    Ronald
    Vlatas wrote:
    The trusted CA file holds the root CA certificates that will be trusted by
    the proxy plugin. So if your
    App server has CertA from Verisign, and CertA was issued by a Verisign CA
    certificate, then you
    want to have the Verisign CA certificate in the trusted CA file for the
    proxy plugin.
    Also, look in /tmp/wlproxy.log, errors should be getting logged in there
    that will help determine the
    problem.
    Tony
    "caris" <[email protected]> wrote in message
    news:3b0dbfb4$[email protected]..
    I'm using WebLogic 6.0 and iPlanet 4.1 for my application.
    I've got certificate from Versign for WebLogic and tested it well for
    standalone
    App Server.
    However, when I use iPlanet for proxy, the page doesn't display at all.
    Here is
    my config statement for iPlanet
    <Object name="weblogic" ppath="*/*">Service fn=wl-proxy
    WebLogicHost=localhost
    WebLogicPort=7002 SecureProxy=ON
    TrustedCAFile="c:/bea/wlserver6.0sp1/config/mydomain/getcacert.cer"</Object>
    Am I get it right? And I wonder what should it be put in the field
    "TrustedCAFile"
    By the way, I've got the certificate for the iPlanet Web Server too.
    It works fine for iPlanet with SSL pointing to the WebLogic port 7001.
    However it can't work at all when I pointing to the port 7002..
    Thanks for any ppl who can help me..

  • Problems with jsp and jdbc

    I am writing a simple class to start learning about jdbc. I wrote the following WHICH COMPILES:
    public MyClass {
    System.out.println("establishing connection...");
    OracleConnectionPoolDataSource ods = new OracleConnectionPoolDataSource();
    // this is where all the variables are initialised.
    ods.setDriverType ("oci8");
    ods.setServerName ("test");
    ods.setNetworkProtocol ("tcp");
    ods.setDatabaseName ("tester");
    ods.setPortNumber (1521);
    ods.setUser ("test");
    ods.setPassword ("password");
    // this is the variable that will get the connection pool.
    // from this connection pool, you will get all ur connections.
    pool = new OracleConnectionCacheImpl(ods);
    and i am calling it by:
    System.out.println("connecting to DataBase");
    dbc = new MyClass();
    System.out.println("connected to DataBase");
    THIS WORKS FINE when i do either a command line execution - run a query thru a normal main method.
    HOWEVER, when i try and call it from a jsp page, i get the following error from tomcat:
    org.apache.jasper.JasperException: oracle/jdbc/pool/OracleDataSource
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
    furthermore, the first system.out.println("establishing connection"); is not printed. "Connecting to Database" is printed however. i am really confused.
    however, i have an ancient copy of tomcat 3.2 that i used - just to test - and that worked fine. i have to get this to work with tomcat 4.1.
    i am really in a jam - any insights, please help!!!
    thankyou so much.

    Mahesh,
    It is the problem of your DRIVER not being in the classpath of TOMCAT. Put the driver in the lib folder of tomcat or else include the folder which contains the driver to the tomcat classpath. It should work OK.
    Good Luck.
    Sekar

  • Problem using ant and weblogic web services (jwsc)

    I have made a small HelloWorld implementation as given in http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webserv/use_cases.html#wp228687. but when I run ant I get this error
    Buildfile: build.xml
    build-service:
    [jwsc] JWS: processing module /examples/webservices/hello_world/HelloWorldImpl
    [jwsc] Parsing source files
    [jwsc] Parsing source files
    [AntUtil.deleteDir] Deleting directory /tmp/_gwf3vm
    BUILD FAILED
    /home/testprojects/src/build.xml:10: java.lang.RuntimeException: Unknown javadoc problem: result=1, root=null:
    JAM: error - Cannot find doclet class com.bea.util.jam.internal.javadoc.JavadocRunner_150
    1 error
    Any help?

    I also faced the same problem what I did is
    moved all the files from weblogic ant directory into another folder
    and ant*.* from c:\bea\weblogic81\server\bin to a temp location
    copied all the jar files from apache-ant-1.6.3\lib to beahome\lib\ant folder
    copied all the ant*.* files from apache-ant-1.6.3\bin to c:\bea\weblogic81\server\bin directory
    now I ran the ant -version I am getting the latest version
    try this

Maybe you are looking for

  • Time Machine - won't back two external drives

    At least I cannot get it to do what I want.  Our MacBook died.  Not sure what's wrong but it does not appear to be the hard drive.  Also, that drive has not been backed up in a few months. The main drive is a 320 GB with 246 GB used. The Backup USB d

  • Is there a limit to number of recipients for an email?

    I need to send the same email to about 250 people. Is there a limit to the number of recipients Mail can handle in the BCC field? At the moment I can get all the address's from a spreadsheet as Comma separated text. Will this pasted into the BCC fiel

  • Black boxes

    When i go into various apps, black boxes appear and then in apple dropdown thingy , theres two of everything eg log out and then log out again below it ? any1 know what this is ?

  • Got error in job execution, but the standalone procedure runs fine.

    I got error in job execution. But it runs fine as standalone procedure. Where could it be wrong? _>exec dbms_job.run(145373); BEGIN dbms_job.run(145373); END; ERROR at line 1: ORA-12011: execution of 1 jobs failed ORA-06512: at "SYS.DBMS_IJOB", line

  • Uploading stills giving odd clip length for time laps.

    I'm putting together a timelapse movie with about 6K stills.  I have them gathered in groups of 600.  They're all about 4 megs.  I'm taking them into a sequence at 24 fps.  Why is my clip coming in at about 6 sec's?  Then another group of 600 stills