dhana rangu

Ranch Hand
+ Follow
since Oct 01, 2003
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 dhana rangu

yamini

can u put it in more detail..

thanks a lot
dhana
hi


Thanks for ur kind and detailed reply.............

NO LUCk even now.........

dhana
hi arnel

I created a subdirectory in web-inf/classes/testpack and place first.class file there .

restarted tomcat..but still the same error




[ July 01, 2004: Message edited by: dhana rangu ]
hi

even in my second post I posted wrong mapping..I was in a hurry to get a suggestion .Thats why gone wrong

sorry for the confusion..The exact mapping I did was in my earlier post.I edited it.Even now i am getting the same error

HTTP Status 404 - /examples/servlet/first
--------------------------------------------------------------------------------

type Status report

message /examples/servlet/first
description The requested resource (/examples/servlet/first) is not available
Hi

i actually placed the class file in
tomcat/webapps/examples/web-inf/classes
earlier it was a typo error...

Can u plz help me how i should change the mapping in web.xml

<servlet-mapping>
<servlet-name>first.java</servlet-name>
<url-pattern>/servlet/first.java</url-pattern>
<servlet-mapping>

<servlet>
<servlet-name>first</servlet-name>
<servlet-class>testpack.first</servlet-class>
</servlet>


this is the mapping i did...But i doubt if url-pattern is wrong..

plz help

[ July 01, 2004: Message edited by: dhana rangu ]

[ July 01, 2004: Message edited by: dhana rangu ]
[ July 01, 2004: Message edited by: dhana rangu ]
Hi

i have created a servlet by name first.java in c:/dhana/first.java.
The code is

package testpack;
public class first extends Httpservlet
{
........

}

Now I donot understand how to procedd further.

I compiled the file and placed the class file
in c:/tomcat/webapps/examples/web-inf/classes/first.class


And now i am invoking the servlet using a html file as follows

<html>
<form action="http://localhost:8080/examples/servlet/testpack.first>
........
</html>

WHat i doubt is

1) how should we place the class file in tomcat.

2)Should we create a subdirectory with same name as the package name in tomcat/webapps/examples/web-inf/classes.

3)how should we indicate the path of the servlet in html file .Should we invoke with the fully qualified name...

with the above structure i am GEtting HTTP 404 error file not found.....

please help me with this

dhana
[ June 30, 2004: Message edited by: dhana rangu ]
thanks all of u for ur reply

I have change server.xml inorder to add servlet context.some thing was gone wrong there with out my notice..

i made the reqd changes and its working fine now

thanks
dhana
Hi my environment variables are properly set

I tried to start at the command prompt as follows:


E:\tomcat\jakarta-tomcat-4.1.30\bin>startup.bat


Using CATALINA_BASE: ..
Using CATALINA_HOME: ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME: e:\j2sdk1.4.2_04



these are what i saw on the window...plz help>>Even now tomcat window is disaapearing
I am not sure whether this is the correct place to post my question.

my problem is

When i start tomcat startup,I am geting a window(which is like dos window) and is disappearing quicly...

I didn't have this problem earlier..but all of a sudden its happening.
My OS is windows2000 server..

plz help me in resolving this
Hi alan

I just tried a simple solution and it worked out...

What i did is I unlocked the anonymous user acccount in oracle like



surprisingly it worked......

BTW i looke for isql service u r talking abt ..but i could not find in my services list..can u plz tell me where it will be???

thanks
dhana
thnaks a lot for ur help..I will let u know if any problem is there/?
thanks
dhana
i have oracle 9i installed

if i stop oracle..its giving tns listener error

plz help
hi

I have written a simple servlet which retrieves a string from oracle data base and displays on the browser.

I am using tomcat.

But when i run the servet i am getting a page with a window like this



401 unaurhorized

enter network passwd

please type ur username and passwd

Site :localhost
realm :xdb
USername:
passwd:



I am unable to resolve this..

I request u to help me in getting thru this

THANKS A LOT
dhana
hI

I wrote a simple applet which connects to database (ORACLE) and retreives a value into a TEXT item.

But i am getting an error

access denied (java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc)

I have gone thru the earlier discussions and understood that some thing must be done with the security settings with the policy tool...

Can any one let me know know in brief what can be done to resolve this

THANKS A LOT
dhana
Try this

INSERT INTO dest (ID, V1, V2) VALUES (SELECT ID, V1,V2 from SRC);