shivani anand

Ranch Hand
+ Follow
since Dec 28, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by shivani anand

I know where to create error.jsp but still I'll like to know where 404.jsp is located as I'll prefer jsu to remove version info from there.

thanks
SA
17 years ago
what is location of 404.jsp . Is I need to create error.jsp where should I create one

thanks
SA
17 years ago
Hi,

Right now when I type certail url which is using tomcat I get 404 error and also apache tomcat version . Due to security reason we do not want to display apache tomcat version. Could anyone please let me know how to disable this?

thanks
SA
17 years ago
Hi!

Recently I upgrade tomcat to 5.0.28 and java to 1.4.2 on windows server. But we are seeing issue of connection being dropped. I'll like to know how to set MaxKeepAliveRequests in tomcat to avoid connections from being dropped.

thanks
Shivani
17 years ago
I uninstalled and reinstalled Java1.4.2 and everthying worked fine but when I do java _version from command prompt it is giving me java 1.3.x but in control panel add/remove program it is showing Java 1.4.2 . Please suggest what is happening. I tried unistalling all java application and restarting server and installing Java again but no luck.

This is urgent please help
17 years ago
I am trying to upgrade tomcat from 4.1 tp 5.0.28 on windows. Please let me know the steps to do it. I've already downloaded the installation files. I will also be upgrading java from 1.3.x to 1.4.2.

thanks
SA
17 years ago
I am trying to upgrade java sdk from 1.3.x to 1.4.2 . Please send me steps to do it and also let me know if I need to keep in mind anything regarding this upgrade.

thanks
SA
17 years ago
Hi I've installed tomcat4.1 on windows everything worked fine service is started . Only issue is when I type http://localhost:8080 in IE it is taking long time and is unable to open welcome page. I can ping 8080 from that server any idea what's happening.. I did following for installation....

Install j2sdk
Install with all typical options, put in the E:/<name it> drive.
Add environment variable: JAVA_HOME E:/Java_2_SDK (or what ever name/path you chose)
Go to Control Panel/System
Go to Advanced Tab, click on the Environment Variables button
Add new Env Var

Install Tomcat:
Install Custom:
ExpandTomcat � install as a service and core, remove source code, documentation and Start Menu Items and Examples.
Install on E:/ remove all spaces from path
Use 8080
Browse to E:/ java jre folder
[ March 17, 2006: Message edited by: Bear Bibeault ]
18 years ago
Thx! Avi it worked. Got some more ques..
I am creating trigger after update of one particcular column in table I know how to do it just on update on table but how to specify only when particular column is updated
____________________________________________________________________
CREATE OR REPLACE TRIGGER test.UPD_MAILOUTPUT
AFTER UPDATE
ON test.MAILOUTPUT

thx in advance
Shivani
18 years ago
Hi! I am trying to create following trigger but getting error..

CREATE OR REPLACE TRIGGER CMPGN_ID_TEST
BEFORE INSERT OR UPDATE
ON SH_TRIGGER_TEST
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
DECLARE
tmpVar NUMBER;
BEGIN
tmpVar := 0;

SELECT ENS_CAMPAIGN_SEQ.NEXTVAL INTO tmpVar FROM dual;
:NEW.CAMPAIGNID := to_char(tmpVar);
-- call store procedure .NewEmailPromo() to insert rows
-- in campaign hierarchy table(Catalog,Segment_Code,Keycode)
-- IF (errCode <> 0)
-- get the errMsg to the user in the GUI(somehow)
call NewEmailPromo(:NEW.CAMPAIGNID,:NEW.CATALOG_CD,:NEW.SEGMENT_CD,:NEW.CAMPAIGN_NAME,:NEW.MESSAGE_NAME,:NEW.LIST_NAME);
EXCEPTION
WHEN OTHERS THEN
-- Consider logging the error and then re-raise
RAISE;

END ;
___/
____________________________________________

error I am getting is
PLS-00103: Encountered the symbol "NEWEMAILPROMO" when expecting one of the following:

:= . ( @ % ;

any idea what's going wrong?

thanks
SA
18 years ago
Tim,

Thanks a bunch it worked
SA
19 years ago
One more thing my process_request.jsp in following folder
/var/tomcat4/webapps/ROOT/cu/emailreg


SA
19 years ago
I am sending code but the thing is it is working on one box I am trying to migrate all application on different server.

************* process_request.jsp ****************
<%@ page import="java.util.*" %>

<jsp:useBean id="xxxxxx" class="cu.emailreg.RegistrantBean" scope="request">
<jsp:setProperty name="Registrant" property="*"/>
</jsp:useBean>
<%
if (Registrant.validate()) {
Registrant.insert();
response.sendRedirect(Registrant.getredirect());
} else {
// invalid data - display error page
%>
<jsp:forward page="get_info.jsp"/>
<%
}

**************************java code *************
package cu.emailreg;

import coreservlets.DBResults;
import coreservlets.DatabaseUtilities;
import csc.utils.StringFormat;
import csc.utils.errorHandler;
import java.io.*;
import java.util.Hashtable;

// Referenced classes of package cu.emailreg:
// emailSubscriberConnectionPool

public class RegistrantBean
{

public RegistrantBean()
{
version = "1.1, 2003/12/23";
debug = false;
if(debug)
System.out.println(getClass().getName() + " version " + version + ": entering RegistrantBean method");
email = "";
fname = "";
action = "";
list = new String[0];
redirect = "";
crsubscriber = "";
availableList = new Hashtable();
general_error_msg = "";
errors = new Hashtable();
if(debug)
System.out.println(getClass().getName() + ": leaving RegistrantBean method");
}
19 years ago
Hi!
I started tomcat through following script

******************************************
echo Starting Tomcat > tomcat_status
date >> tomcat_status
CLASSPATH=/var/jakarta-tomcat-5.5.6/server/lib:/var/tomcat4/common/lib:/var/tomcat4/webapps/WEB-INF/classes:/var/tomcat4/common/lib:/var/tomcat4/webapps/WEB-INF/classes
export CLASSPATH
CATALINA_HOME=/var/jakarta-tomcat-5.5.6
export CATALINA_HOME
JAVA_HOME=/usr/java/jdk1.5.0_01
export JAVA_HOME
cd $CATALINA_HOME/bin
rm nohup.out
nohup ./startup.sh &
***************************************

now I am tring to access one jsp script from explorer

It is giving me following error..
org.apache.jasper.JasperException: /cu/emailreg/process_request.jsp(3,0) The value for the useBean class attribute cu.emailreg.RegistrantBean is invalid.



Why it is giving so any idea?

there is a file RegistrantBean.class in following folder

/var/tomcat4/webapps/WEB-INF/classes/cu/emailreg.

Please advice.
thanks
SA
19 years ago
Hi!

I've installed jakarta-tomcat-5.5.6 and I am trying to access my jsp through explorer and I am getting following error ..
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:565)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

java.io.FileNotFoundException: /var/jakarta-tomcat-5.5.6/work/Catalina/localhost/_/org/apache/jsp/cu/emailreg/process_005frequest_jsp.java (No such file or directory)
java.io.FileOutputStream.open(Native Method)
java.io.FileOutputStream.<init>(FileOutputStream.java:179)
java.io.FileOutputStream.<init>(FileOutputStream.java:70)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:131)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note The full stack trace of the root cause is available in the Apache Tomcat/5.5.6 logs.


--------------------------------------------------------------------------------


Any idea what's happeningt? Please send reply ASAP.

thanks
SA
19 years ago