Arajeshh Kumara

Greenhorn
+ Follow
since Dec 29, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Arajeshh Kumara

hello ranchers,
I have installed jdk5.0 in my system, and i have set the class path and path in the environment variables but when i run my application i get the class not found exception and exception in main thread exception. i need to know the information urgent please reply me as soon as possible.

Thanking you,
bye
16 years ago
Thank you very much sir

It's running

but one small doubt when typed in the address i m getting the result.....

i need to get when i click on my application...

If i clicked the application its showing http 404 error...


Thanking you,
Rajesh


16 years ago
I have changed the url-pattern as /ServleDemo/* and
when i entered the http://localhost:8080/Example/ServletDemo

I am getting the page as

HTTP Status 500 -

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

type Exception report

message

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

exception

javax.servlet.ServletException: Error instantiating servlet class simple.ServletDemo
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
java.lang.Thread.run(Unknown Source)


root cause

java.lang.IllegalAccessException: Class org.apache.catalina.core.StandardWrapper can not access a member of class simple.ServletDemo with modifiers ""
sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
java.lang.Class.newInstance0(Unknown Source)
java.lang.Class.newInstance(Unknown Source)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
java.lang.Thread.run(Unknown Source)


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


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

Apache Tomcat/5.5.25


Thanking you,
Rajesh
16 years ago
Hello ranchers,

I am getting the HTTP 404 erro when i am running my simple servlet....

my servlet name is ServletDemo.java. I compliled and got the .class file

where my .class file placed in C:\Tomcat\webapps\Example\WEB-INF\classes\simple\ServletDemo.class

my web.xml file is

i have placed this file in C:\Tomcat\webapps\Example\WEB-INF\web.xml

when i click on my application folder i got the http 404 error

when i typed in the location http://localhost:8080/Example/simple/ServletDemo
i got the same error


Please give me the suggestions

waiting for your valuable reply


[BPSouther: Added code tags]
[ February 08, 2008: Message edited by: Ben Souther ]
16 years ago
Hello friends,
I am not able run my first servlet program with tomcat 5.5 and JDK1.5...Please describe the steps..
16 years ago
yah i have placed my .class file in that classes folder...

And i have used package in .java application and compiled..and I have i modified my web.xml as

<servlet-class>packagename.ServletDmo</servlet-class>
16 years ago
my web.xml looks like now

<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<servlet>
<servlet-name>HelloWorldExample</servlet-name>
<servlet-class>HelloWorldExample</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloWorldExample</servlet-name>
<url-pattern>/servlet/HelloWorldExample</url-pattern>
</servlet-mapping>

</web-app>

my application is placed in
C:\Tomcat\webapps\serlvetexx\WEB-INF\classes\ServletDemo.java

I have addressed in web.xml is
<servlet-class>ServletDemo</servlet-demo>
16 years ago
My Application has been deployed...I have seen my Application folder in tomcat manager. when click the folder the application shows the error HTTP status 404 error. So please reply me. If you solve my problem i will be glad thankful to you..
16 years ago
I am so sorry..

I have compiled the application and restarted the server...still getting the same error..do I need to change server.xml or web.xml in tomcat conf.
16 years ago
sorry to say those are my typing mistakes...I have corrected still am getting the same error...
16 years ago
Hello rancher,
I am trying to run servlet program from 1 week..still i am getting HTTP 404 when i am trying to run the application..please correct my problem.

I have installed JDK1.5 and Tomcat 5.5 and
in environment variables i have set the path is classPath=c:\tomcat\common\lib\servlet-api.jar;c:\tomcat\common\jsp-api.jar;
path c:\jdk1.5\bin;
JAVA_HOME=c:\jdk1.5;
CATALINA_HOME=c:\tomcat;

This is my servlet program


i have successfully compiled the servlet program and placed webapps\servletex\WEB_INF\classes\

and web.xml is placed in webapps\servletex\WEB_INF\

<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<servlet>
<servlet-name>ServletDemo</servlet-name>
<servlet-class>ServletDemo</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ServletDemo</servlet-name>
<url-pattern>/ServletDemo</url-pattern>
</servlet-mapping>
</web-app>

i started the server and clicked my folder name i m getting the 404 error..........and i have typed the url http://localhost:8080/servletex/ServletDemo
still i m getting the same error..i.e. 404 error


so guys please help me...



[BSouther: Added UBB CODE tags]
[ January 11, 2008: Message edited by: Ben Souther ]
16 years ago
Hello,
I followed these step but still i am getting same 404 error. I didn't understand the last step. Could you please describe once again..

Thanks in Advance.
16 years ago